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 restrictions are placed on method overriding?
How does hashmap work in java ?
What is the difference between abstraction and encapsulation?
What does isempty () do in java?
Why we used vector class?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What two classes are used to read data only?
What is java virtual machine? Explain
What do you mean by jjs in java8?
What is the relationship between class and object?
What are the methods of object class ?
Why we use methods in java?
If you do not want your class to be inherited by any other class. What would you do?
What are static blocks and static initalizers in java ?
explain local datetime api in java8?