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 |
what is Dictionary? and what purpose it is used for?
Can a class be protected in java?
why we use merge option in hybernate pls give a ex snippet
What is widening and narrowing in java? Discuss with an example.
How many wrapper classes are there in java?
What is java util function?
What is an immutable class? How to create an immutable class?
What are the problems faced by java programmers who don't use layout managers?
While opening the file, what type of exceptions can be caught?
What is the association?
What are three types of loops in java?
Why do we need to override equals() and hascode() method of object class?