Hw does java support the concept of encapsulation


1. How does Java support the concept of encapsulation?

2. Describe the difference between an object and a class.

3. What is the difference between the contents of a Java variable of a primitive type and a Java variable of a class type?

4. (a) How is a 'static' class method different from a regular (non-static) class method?

(b) How is a 'static' variable in a class different from a regular (instance) variable in a class?

5. What does the Java keyword 'this' refer to?

6. What does the Java 'new' operator do?

7. When does a class require an 'equals' method to be written?

8. What is method "overriding"? Why would you override a method?

9. What advantages does inheritance provide in Java?

10. What is dynamic binding? What advantage does it provide?

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Hw does java support the concept of encapsulation
Reference No:- TGS01713193

Now Priced at $30 (50% Discount)

Recommended (91%)

Rated (4.3/5)