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
What is the static field modifier?
Can inner class be public in java?
Why there is no call by reference in java?
Can a final variable be null?
What does a za z0 9 mean?
Can inner class final?
How do you declare a variable?
What is difference between synchronize and concurrent collection in java?
Is static a singleton?
What checkbox method allows you to tell if a checkbox is checked?
What are local variables?
Explain notify() method of object class ?
Is namespace same as package in java?
What is OOP Language?
What is module with example?