what is the difference between the "protected and default"
modifiers?
Answer Posted / firoz
default can be accessable in same class & same package.
protected can be accessed in same class,same package and
subclass.
| Is This Answer Correct ? | 29 Yes | 26 No |
Post New Answer View All Answers
Difference between overriding and overloading in java?
What is the maximum size of arraylist in java?
What is meant by class loader? How many types are there?
How many types of methods are there?
Does unicode support all languages?
What is replaceall in java?
Why is it important to initialize a variable?
What does system out println () do?
Why runnable interface is used in java?
What are invisible components?.
What is mnemonic code?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
What is the purpose of the file class in java programming?
What is a heavyweight component?
Can a constructor call the constructor of parent class?