What is protected and friendly?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1793


Is singleton set an interval?

703


What is OOP's Terms with explanation?

843


How do you allocate memory to object?

709


What is the basic concept of java?

754


What is assembly condition codes?

743


How does map works in java?

725


How do you sort in descending order in java using collections sort?

689


Explain wait() method of object class ?

850


Can we create an object of private class?

729


How do you reverse a string in java without using string buffer?

792


What is classes in java?

690


What is toarray method in java?

751


Is void a data type?

706


What is procedure overloading?

1997