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
List some java keywords sun like c, c + + keywords?
What is the purpose of extern variable?
How is java hashmap implemented?
What are java packages?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is class forname?
Explain the selection sort algorithm and state its time complexity?
What is the use of a copy constructor?
What is Recursion Function?
What is a variable simple definition?
What are the different ways to handle exceptions?
In java, what is the difference between method overloading and method overriding?
What does string [] args mean?
What is google full form?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com