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 a default package ?

Answer Posted / vishwanath

A default package is the package, which a java class
belongs to, when theres no explicit package statement like

package foo;

----------
eg:

This class below is set to belong to the default package.
class Foo
{

}

-------------
Design considerations:

Its not a good design choice though to have it this way,
a java class belonging to the default package

Reason:
1) Bad modularizing
2) problems with access specifiers arise
etc...

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is null a string?

980


What is * argv?

1218


What is variable explain?

984


How can I become a good programmer?

963


Can an integer be a string?

1038


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8082


What happens if main method is not static?

983


What is the purpose of javac exe?

1080


Is a class an object?

987


Can vector have duplicates in java?

926


What is the importance of static variable?

1098


What is a void in java?

1140


I want to persist data of objects for later use. What is the best approach to do so?

1040


Is c better than java?

936


Is there a sort function in java?

952