What is default specifier ??? Use of default specifier ???
Answer Posted / prativa mohapatra
Java provides a default specifier which is used when no
access modifier is present. Any class, field, method or
constructor that has no declared access modifier is
accessible only by classes in the same package. The default
modifier is not used for fields and methods within an
interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is java volatile?
What is difference between static class and singleton pattern?
Why collection is called framework in java?
What is callable java?
Does java support multiple inheritance or not?
What do you understand by overloading and overriding in java?
Can private method static?
How would you format a date in java? I.e. In the ddmmyyy format?
Can a method be static?
What is Java Reflection API? Why it’s so important to have?
Tell me about your ability to work under pressure
Why java is said to be pass-by-value ?
Explain Basics of OOP Language in java
Does variable declaration allocate memory?
How is garbage collection controlled?