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
Do loops java?
What does singleton mean in java?
What checkbox method allows you to tell if a checkbox is checked?
What is the main purpose of java?
What is the byte order of byte buffer?
What about method local inner classes or local inner classes in java?
Which method must be implemented by all threads?
Is nullpointerexception checked or unchecked?
Can a class have a static inner class?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
Which types of exceptions are caught at compile time?
What are the steps that are followed when two computers connect through tcp?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is static method with example?
How can constructor chaining be done by using the super keyword?