wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
Answer Posted / liza
A>Default specifier in java is friendly,but there is no
keyword for it.When we simply write:
class{
........
}
JVM assumes it as having default specifier.Friendly
specifier tells the JVM that this class is accessible to all
the classes but in the same package.
B>Default constructor:it has the same name as that of the
class.It takes no arguments.It is the implicit constructor
and automatically generated in the absence of explicit
constructor.It calls the superclass constructor using super().
C>Default method:There is no default method in java.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between linkedlist and arraylist.
What differences exist between iterator and listiterator?
What are the legal operands of the instanceof operator?
Which is easier netbeans or eclipse?
How do you empty a list in java?
Explain about exception propagation?
If try block is successfully executed, Then Is Finally block executed?
What is entry set in java?
How to do encapsulation in java?
What is difference between filereader and bufferedreader?
What is unicode used for?
What is a method declaration?
What is the advantage of preparedstatement over statement?
How does thread synchronization occurs inside a monitor?
Explain the inheritance?