Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Does set allows null in java?

954


Is list thread safe in java?

919


What is the difference between actual and formal parameters?

941


Can you write a java class that could be used both as an applet as well as an application?

957


Write a program to check string is palindrome without using loop?

1029


Explain about procedural programming language or structured programming language and its features?

1094


How many types of the indexof method are there for strings?

969


How to store image in arraylist in java?

971


Can a method be overloaded based on different return type but same argument type?

958


What is unicode with example?

1203


What is difference between iterator and enumeration in java?

992


What is a literal coding?

1019


Mention some interfaces implemented by linked list in java.

1019


What is method overloading in JAVA? Why is it not present in C ?

1099


Tell us something about set interface.

997