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 are exceptions
How do you reverse sort in java?
What is var keyword ?
Is array a class in java?
How can I right-justify a string?
What is a constructor overloading in java?
what invokes a threads run() method? : Java thread
How do you check if a number is a perfect square?
What is heterogeneous in java?
What is meant by final class?
What is string in java?
What is the simpletimezone class in java programming?
What is overloading and overriding in java?
What is a cup of java?
what are different ways in which a thread can enter the waiting state? : Java thread