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 a 16 bit word?
write a program that list all permutations of ABCDEF in which A appears before B?
Can we use string in switch case in java?
What are the differences between throw and throws?
How many types of parsers are there?
What is a map? What are the implementations of map?
What is object of class in java?
Is java still necessary?
Is arraylist ordered?
What is an association?
What is difference between static and abstract class?
What are the advantages of passing this into a method instead of the current class object itself?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
How does linkedlist work in java?
What is the purpose of declaring a variable as final?