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

From the two, which would be easier to write: synchronization code for ten threads or two threads?

999


What is the purpose of nested class in java?

1015


What is the purpose of javac exe?

1025


what is aggregation in java?

944


What are reference variables in java?

1066


What is the use of flag?

1020


What are scriptlets?

1029


What is an abstract class and what is it’s purpose?

907


Write a program to reverse a number in java?

1040


What is the difference between abstract classes and interfaces?

973


Can we use return in constructor?

882


What is a data structure java?

952


Why do we override tostring method in java?

896


What is type inference in java8?

977


What do you understand by Header linked List?

1034