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 disadvantage of synchronization?
Why is java logo a cup of coffee?
What are invisible components?.
What is meant by object oriented programming – oop?
What about static nested classes in java?
What do you mean by Hash Map and Hash Table?
You're given a Boolean 2D matrix, can you find the number of islands?
What is callablestatement? How you can call stored procedure to pass in parameter?
Explain the difference between throw and throws in java?
Does java return by reference?
What if constructor is protected in java?
What is the purpose of tostring() method in java?
What are aggregate functions explain with examples?
what is meant by Byte code concept in Java?
how can you take care of mutual exclusion using java threads? : Java thread