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
Is string serializable in java?
Is break statement can be used as labels in java?
What is final keyword in java? Give an example.
What is a line break example?
Can we extend a class with private constructor?
What is console based application in java?
Is string is a data type in java?
What is the difference between yielding and sleeping?
Which is faster string or stringbuilder?
What is the primitive type short?
What are predicates in java 8?
What is the difference between math floor and math round?
Which is faster set or list in java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
Which browsers work with java?