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 jee6?
When should I use singleton pattern?
How many bits is a string?
What is method and methodology?
How many types of memory areas are allocated by jvm?
What is externalizable interface?
What does nullpointerexception mean?
What is difference between final and immutable?
What do you understand by garbage collection in Java? Can it be forced to run?
what is instanceof operator used in java?
What do you mean by Function Overloading in java?
What is main in java?
What is the difference between the boolean & operator and the && operator in java programming?
Can private class be extended java?
What is the platform?