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

Which method cannot be overridden in java?

804


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1685


What do you mean by pointer value and address?

794


What is final keyword?

874


What is the difference between sop and work instruction?

692


What is meant by class?

772


What is wrapper class example?

744


Is string is a keyword in java?

747


Why does abstract class have constructor?

765


What is the meaning of variable in research?

775


what is thread? What are the high-level thread states? : Java thread

1022


How can I right-justify a string?

856


Explain method overloading?

756


How to change value in arraylist java?

761


Does anyone still use java?

844