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 is difference between == equals () and compareto () method?

992


What is a module function?

1030


Which are the two subclasses under exception class?

1011


What is a boolean flag in java?

965


How to remove the trailing spaces from a string?

1189


Why do we declare a class static?

1073


What is api data?

953


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

926


What's the access scope of protected access specifier?

991


what is aggregation in java?

951


Can you override static methods?

906


What is the point of java?

977


What are different exception types exceptions available in java ?

955


What happens when a thrown exception is not handled?

1058


Why hashset is used in java?

1015