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 a char in java?
What mechanism does java use for memory management?
What is the loop in java?
Difference between concurrent hashmap and hashtable and collections
Does apple use java?
Write a program to reverse array in place?
What is the benefit of using enum to declare a constant?
Why java is used everywhere?
State the significance of public, private, protected class?
What do you mean by collectors in java 8?
Can we override protected method in java?
what is server side caching?
What is an empirical question?
What does string mean in java?
Can two objects have same hashcode?