Answer Posted / umanath
Namely 4, but functionally 5
public--------------access to all
protected-----------limited to any class in same package and
sub class of any package
friendly(default)---limited to same package only
private protected---limited to sub classes of any package only
private-------------limited to same class only
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Why you should not use singleton?
Is java a utf 8 string?
Explain differences between checked and unchecked exceptions in java?
What is the difference between checked exception and unchecked exception?
Why we use protected in java?
how does the run() method in runnable work? : Java thread
How variables are declared?
Can singleton class be serialized?
Convert a BST into a DLL and DLL to BST in place.
Difference between notify() method and notifyall() method in java?
How do you check whether the list is empty or not in java?
Explain the importance of throws keyword in java?
What is the purpose of static methods and variables?
Explain the difference between private, public, package and protected in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.