wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
Answer Posted / rohit
default specifier specifies access level of class
eg:-
class A{
}
this is default
default constructor is constructor with same name as of
class and no arguments
eg: class A{
A()
}
there is no default method in java
| Is This Answer Correct ? | 22 Yes | 5 No |
Post New Answer View All Answers
What are the six ways to use this keyword?
Explain heap sort?
Is java call by reference?
What is tree node in java?
What is a variable and constant?
What is the method overriding?
how come we know the object is no more used in the class?
What is the benefit of inner classes in java?
What is blank final variable?
What is the difference between Java and C++?
What are the fileinputstream and fileoutputstream?
When a byte datatype is used?
What is array initialization in java?
Is java hashset ordered?
Is java pass by value or pass by reference?