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

How many bytes is a string?

698


Java Compiler is stored in JDK, JRE or JVM?

1139


describe synchronization in respect to multithreading? : Java thread

605


How java enabled high performance?

689


Write a program to solve producer consumer problem in java?

654






Can a class have multiple constructors?

626


How do you replace all in word?

612


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3668


What is the difference between static and global variables and also define what are volatile variables?

663


Is Constructor possible in abstract class in java ?

682


Which data type is class in java?

642


Can a constructor be protected?

627


Is set ordered in java?

653


What is native method in java?

658


Can we create object of static class?

626