Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we access private data outside of the class directly in
java programming language? Why There is no runtime checking
in java, which leads to access the private data directly
outside of a class?

Answer Posted / chaitali

No,we cannot access private data outside of class in java.
There is only compile time checking and no runtime check in
java because Java supports concepts like Polymorphism and
reflection where on runtime certain decisions are taken

Is This Answer Correct ?    14 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default value of the local variables?

1012


Where are register variables stored?

1009


Why are lists ordered in java?

1008


Can we overload the methods by making them static?

995


How big is a gigabyte?

1027


What is the purpose of static methods and static variables?

1067


What is the java reflection api? Why it’s so important to have?

976


What do you mean by data type?

1019


Explain the features of interfaces in java?

973


What is array class in java?

1057


How do you invoke a method?

997


What is a local class in java?

1030


Can we access instance variables within static methods ?

1084


What is a class in java?

1003


What data type is a string?

1005