Answer Posted / bhuwan chandra
As the object in Java has properties and behaviour and they
are encapsulated together, no other class can gain access
of the data unless the class is defined as public.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Who developed java?
What are static methods?
What are local variables?
How do you use nextline in java?
What is the use of arrays tostring () in java?
What is the difference between compile-time polymorphism and runtime polymorphism?
Explain public static void main(string args[]).
Explain different types of wrapper classes in java?
What are heterogeneous objects?
How transient variable is different from volatile variable?
Difference between abstract and concrete class ?
Write a program to print count of empty strings in java 8?
Can we use both this () and super () in a constructor?
How does finally block differ from finalize() method?
What are the major drawbacks of external iteration?