wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
Answer Posted / safikur
default specifier in java is DEFAULT
which can only be visible within the same package.
You can't access any default member of a class directly
from outside the package , you can access those member
through another method of that class.
default CONSTRUCTOR in java is the constructor which has
the same name of the class and has no arguments. if you
define at least one constructor in a class JVM will not put
the default constructor in the class like..
public className(){super();}
if there is no constructor in the class JVM will put the
default constructor in the class like..
public className(){super();}
since its not visible. but implicitly defined by compiler..
there is no concept of DEFAULT method in java spec.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How can constructor chaining be done by using the super keyword?
Why synchronization is important in java?
What are the data types supported by java? What is autoboxing and unboxing?
Explain the difference between string, stringbuffer and stringbuilder in java?
What happens when heap memory is full?
What is a final class ?
java program with complete 4 oops concepts implemented example
What is the difference between variable declaration and variable initialization?
java Technical questions asked by JPMC
What is an inner class in java?
What are conditionals and its types?
What is the purpose of finalization in java programming?
Is java owned by oracle?
what are the high-level thread states? : Java thread
What are the two categories of data types in the java programming language?