What is default specifier ??? Use of default specifier ???

Answer Posted / hemanta paudel

Java provide a default access specifier which is apply when
programmer does not use other specifier.

The default specifier allow to access only with in the same
package. If class A and class B are in same package
(Mypackage) then class A can access class B and vice-verse.

class A
{
-----------
----------
---------
}

class B
{
A a=new A();
--------
--------
}

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the flag in java?

804


difference between byte stream class and character stream class?

4324


Which browsers work with java?

836


What is hashing principle in java?

802


How many bytes is 255 characters?

759


What is java reflection?

772


Difference between arraylist and vector.

844


What is jvm? How its run?

888


What does jre stand for?

822


What are the principle concepts of oops?

751


What is the difference between static (class) method and instance method?

817


What is console based application in java?

808


Which variables are stored in heap?

782


What is a function in java?

797


What is the symbol for line break?

872