What is protected and friendly?
Answer / priyavarzhni
Protected: the method of a class os accessed only when the
other class inherits it.
Friendly: no need for inheritance. we can access the methods
| Is This Answer Correct ? | 3 Yes | 2 No |
Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.
Differentiate between vector and array list.
Implement a stack with push (), pop() and min() in O(1) time.
Explain about the security aspect of java?
how to call a method in different package?
Highest level event class of the event-delegation model?
Explain about abstract classes in java?
What is a flag value?
Explain the difference between call by refrence and call by value?
Whats the difference between notify() and notifyall()?
How does hashset work in java?
What does serializing data mean?