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 is the covariant return type?

580


what is predefined function in java?

539


Can we call thread start () twice?

521


How do you override a variable in java?

533


What access modifiers can be used for variables?

589






What is the differences between heap and stack memory in java? Explain

537


What is an example of a keyword?

546


Write a program to find the whether a number is an Armstrong number or not?

574


What are different types of expressions?

554


How do you classify Dialog Box?

649


What is the abstraction?

594


What are instance variables?

612


What is the difference between abstraction and encapsulation?

563


What happens if I remove static from main method?

527


Where are variables stored?

554