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

What are exceptions

1155


How do you reverse sort in java?

1002


What is var keyword ?

1238


Is array a class in java?

1035


How can I right-justify a string?

1256


What is a constructor overloading in java?

1105


what invokes a threads run() method? : Java thread

1062


How do you check if a number is a perfect square?

1036


What is heterogeneous in java?

1026


What is meant by final class?

1186


What is string in java?

1074


What is the simpletimezone class in java programming?

1171


What is overloading and overriding in java?

1291


What is a cup of java?

1061


what are different ways in which a thread can enter the waiting state? : Java thread

1013