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


Please Help Members By Posting Answers For Below Questions

What do you mean by thread safe?

787


What is the difference between keyword and identifier?

810


What are mutable classes?

746


What is a class reference?

792


What is floor math?

709


What is the difference between integer parseint and integer valueof?

780


How to display all the prime numbers between 1 and 100

733


Which collection is ordered in java?

765


What is the set interface in java programming?

864


How will you initialize an Applet?

863


Which is best ide for java?

814


Is hashset sorted in java?

890


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

756


What is jpa specification?

760


What is entry in java?

814