What is a default package ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create a class inside a class in java?

540


What do you mean by singleton class in java?

512


What is double data type?

537


What is the difference between variable declaration and variable initialization?

500


Which is the class in java?

512






Define how can we find the actual size of an object on the heap?

650


Which collections are thread safe in java?

473


What is arraylist class in java?

507


How can the checkbox class be used to create a radio button?

501


What happens if constructor is private?

558


Can we call thread start () twice?

511


What is the default size of set in java?

496


How many types of memory areas are allocated by jvm?

558


What is stringbuffer in java?

539


What is finalize()?

601