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 ?

Answers were Sorted based on User's Feedback



What is a default package ?..

Answer / niranjanravi

java.lang

Is This Answer Correct ?    15 Yes 4 No

What is a default package ?..

Answer / nithya

A default package is the package which is included
automatically when the class is created. One such example is
java.lang package.

Is This Answer Correct ?    11 Yes 2 No

What is a default package ?..

Answer / 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

What is a default package ?..

Answer / praveen

The default java package is java.lang

Is This Answer Correct ?    5 Yes 4 No

What is a default package ?..

Answer / ravikiran(aptech mumbai)

java.lang

Is This Answer Correct ?    5 Yes 7 No

What is a default package ?..

Answer / indresh

java.lang is the default java package

Is This Answer Correct ?    3 Yes 5 No

What is a default package ?..

Answer / kanchan bangar

package is a collection of classes.
And default package is package in which classes are
included already.
we need not create the new package.
If we are enter only package name then all the classes in
that default package we can used.
example:-
default package:-java.lang

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More Core Java Interview Questions

What is meant by binding in rmi?

0 Answers  


What is the base class in java from which all classes are derived?

0 Answers  


What are the advantages of autoboxing?

0 Answers  


How the elements are organized in GridLayout?

2 Answers  


What is the code inside the public void actionPerformed(ActionEvent ae) override method in Applet [ Condition:- you have one TextField and One Button , you have to enter any color name inside the TextField, when you click on Button Your background will change according to your input color name]

2 Answers   IBM,


What methods are called, When we navigate from one applet to another applet?

1 Answers  


What is extension method in java?

0 Answers  


Which is better arraylist or vector?

0 Answers  


write a program that list all permutations of ABCDEF in which A appears before B?

0 Answers   Nissan,


Can static methods be overridden?

5 Answers   Bravura Solutions,


Explain wait(), notify() and notifyall() methods of object class ?

0 Answers  


What is advantage of using threads?

2 Answers   BMC,


Categories