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 does percent mean in java?
what is mutual exclusion? : Java thread
Can we sort a map in java?
What are "methods" and "fields"?
Explain some best practices you would apply while using collection in java?
What is difference between static class and singleton pattern?
What is the difference between delete and delete[]
Explain the difference between private, public, package and protected in java?
What checkbox method allows you to tell if a checkbox is checked?
What do you mean by hashing?
What is the difference between final, finally and finalize() in java?
Write a program to check for a prime number in java?
What are the differences between stringbuffer and stringbuilder?
What is the difference between pass by reference and pass by pointer?
Can you declare the main method as final?