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
Explain java coding standards for classes or java coding conventions for classes?
What are the types of arrays in java?
what is instanceof operator used in java?
What is the difference between static and global variables and also define what are volatile variables?
How many static init can you have?
How is hashset defined in java?
What is the difference between preemptive scheduling and time slicing in java programming?
What is the base class in java from which all classes are derived?
What is used of static keyword in java?
What is preparedstatement in java?
What is function overriding and overloading in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is the output of the below java program?
What environment variables do I need to set on my machine in order to be able to run java programs?
Can we have any other return type than void for main method?