wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA

Answer Posted / safikur

default specifier in java is DEFAULT
which can only be visible within the same package.
You can't access any default member of a class directly
from outside the package , you can access those member
through another method of that class.

default CONSTRUCTOR in java is the constructor which has
the same name of the class and has no arguments. if you
define at least one constructor in a class JVM will not put
the default constructor in the class like..

public className(){super();}

if there is no constructor in the class JVM will put the
default constructor in the class like..

public className(){super();}

since its not visible. but implicitly defined by compiler..


there is no concept of DEFAULT method in java spec.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2061


What do you mean by pointer value and address?

581


What is the difference between stored procedure & function?

550


Can we override final method?

571


Is a class subclass of itself?

604






What is initial size of arraylist in java?

537


How does linkedlist work in java?

508


What is data member in java?

505


What is number data type in java?

559


Explain method local inner classes ?

595


Is array size fixed in java?

542


How to split a string in java?

628


Is object a data type in java?

591


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

627


Is java a super set of javascript?

587