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 the importance of finally over return statement?

1046


Tell me a few examples of final classes defined in Java API?

1099


Is char a method in java?

1067


Is intellij better than eclipse?

1094


What is the purpose of object oriented programming?

980


Can we have multiple classes in a single file?

983


What is the purpose of void?

996


What is the meaning of flag day?

1024


What is ctrl m character?

1059


Why java is called not pure object oriented language?

1023


Can we overload final method in java?

989


Can two objects have same hashcode?

1001


What is boolean flag in java?

1098


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

992


What is variable explain with example?

1063