we are saying that private variables cant be access by other class or by other object of same class . so we are saying this as encapsulation or data hiding. we are saying this as a powerful oops concept.
What are advantages of inner class
Latest Answer: Logical grouping of classes—If a class is useful to only one other class, then it is logical to embed it in that class and keep the two together. Nesting such "helper classes" makes their package more streamlined. Increased encapsulation—Consider ...
no answers
Latest Answer: Java Does not support call by reference and it only support CALL BY VALUE ...
Latest Answer: void main() is not accessible to JVM. Because it not public and static. JVM has no entry point. ...
If I write all of concrete methods in one class and all abstract methods in an interface and extend and implement both in third class assume that third class don't extend any other class?
Latest Answer: If we have some method which body is not defined till declartion of class and body is implemented in subclass later then declare that class as abstract class.If a class has atlest one abstract method then we have to declare class as abstract class ...
Latest Answer: A class which is define inside a class is known as inner class inner class can be static but top level class can not be static. ...
What is the purpose/uses of run-time polymorphism? Is dynamic binding only way to achieve run-time polymorphism?
Serializable is used to read or write the object and find the state of an object. What is the use of finding the state of an object, Explain with an example?
Latest Answer: Hi, Pls go the below link, you will get the solution for your problemhttp://support.businessobjects.com/communityCS/FilesAndUpdates/bexi_jsp_samples.zip.aspThanks and Regards,Senthil C.R. ...
Latest Answer: Class clsObj = Class.forName("ClassName"); Method method = clsObj.getMethod("methodName",null); method.invoke(clsObj.newInstance(),null); ...
View page [1] 2 3 Next >>

Go Top