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...

How can a class be accessed, If no access modifiers are
declared?

Answer Posted / ranganathkini

If a class is marked with no access modifiers then it is
given "package" access by default which means it can be
instantiated or subclasses by other classes in the same
package but it is inaccessible to classes outside the same
package.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what access modifiers can be used for variables?

1005


Can a class be declared as static?

1107


What about anonymous inner classes in java?

974


What methodology can be employed to locate substrings inside a string?

901


What invokes a thread's run() method in java programming?

1110


What is difference between next () and nextline () in java?

936


You're given a Boolean 2D matrix, can you find the number of islands?

1045


How many types of voids are there?

918


Is null an object java?

924


what is the difference between the methods sleep() and wait()? : Java thread

903


Explain illegalmonitorstateexception and when it will be thrown?

1034


Explain about member inner classes?

1025


What do you mean by garbage collection used in java?

1005


What is a text string?

1036


Explain inheritance in java?

925