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
Does set allows null in java?
Is list thread safe in java?
What is the difference between actual and formal parameters?
Can you write a java class that could be used both as an applet as well as an application?
Write a program to check string is palindrome without using loop?
Explain about procedural programming language or structured programming language and its features?
How many types of the indexof method are there for strings?
How to store image in arraylist in java?
Can a method be overloaded based on different return type but same argument type?
What is unicode with example?
What is difference between iterator and enumeration in java?
What is a literal coding?
Mention some interfaces implemented by linked list in java.
What is method overloading in JAVA? Why is it not present in C ?
Tell us something about set interface.