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 Applet Stub Interface ?

2495


What are abstract methods in java?

1122


In a container there are 5 components. I want to display all the component names, how will you do that?

2190


How do I write a self declaration?

1109


What are structs in java?

1060


Can we make main() thread as daemon?

1107


What are the super most classes for all the streams?

2561


Why java is a platform independent? Explain

1089


What is meant by collection in java?

1075


What are the supported platforms by java programming language?

1045


What is the difference between length and length() method in java?

1118


Is string is a data type?

948


How do you generate random numbers in java?

1006


Is java programming easy?

995


What are daemon Threads in java?

1202