what is the difference between the "protected and default"
modifiers?
Answer Posted / ravikiran
protected access is with in the same package and subclasses
outside the package
default access is with in the same package only
Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
What is a byte array?
Explain jdk, jre and jvm?
State the difference between strings and arrays.
What is the current version of java?
How many types of operators are there?
What is bufferedreader in java?
What is an infinite loop? How infinite loop is declared?
What is the maximum size of byte array in java?
How do you square a number in java?
What are use cases?
How to create com object in Java?
Will minecraft java be discontinued?
What is run time allocation?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What means public static?