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
What is the flag in java?
difference between byte stream class and character stream class?
Which browsers work with java?
What is hashing principle in java?
How many bytes is 255 characters?
What is java reflection?
Difference between arraylist and vector.
What is jvm? How its run?
What does jre stand for?
What are the principle concepts of oops?
What is the difference between static (class) method and instance method?
What is console based application in java?
Which variables are stored in heap?
What is a function in java?
What is the symbol for line break?