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
Define how can we find the actual size of an object on the heap?
What is annotation in java?
What is udp in java?
What about main() method in java ?
Is heap stored in ram?
List some features of the abstract class.
What is argument in java?
How to split arraylist elements in java?
How do you control extraneous variables?
What are the limitations of procedural programming approach?
What is stored procedure. How do you create stored procedure ?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is jee6?
How to make a class or a bean serializable?
What is the most important feature of java? What is an interface?