package is a logical container that contains logically related classes interfaces and sub packages.
Concept of package is use to provide a unik name space to class as well as to enforce scope.
There are almost 200 packages in the standard J2SE distribution. Please see the related link below detailing the Java API (for Java 7) for a full listing.
Java is a computer programming language, and can work across many different operating systems. Due to its versatility it is used in many software packages, e.g. games, graphic's software, etc.
No.
jvac -d classname.java
1.user defined packages 2.predefined packages
basically packages are a collection or a directory of similar classes. there are some inbuilt packages in java which prove to be really useful like the java.lang package which automatically is imported into your program. in addition you can also create your own packages and its really simple to create them! :)
1
by adding more documents
JDK stands for Java Development Kit. This contains the Java compiler, Interpreter and other tools that Java provides. It also contains all Java default packages and classes that can be used for development of Java Applications. JDK versions are continuosly released and upgraded every year by Sun Microsystems.
Java Classpath is a parameter that tells the Java Virtual Machine or the Java Compiler, where to search for user-defined classes and packages on a computer.
A package is used to group related classes. Each class in the group is identified by the "package" keyword, followed by some keyword for the group.
Java packages can be imported using the import key word in java. There are two ways of importing java programs. 1. you can import the class along with the fully classified class name. Ex: import java.lang.String; 2. you can import all classes in a package using the star symbol. Ex: import java.lang.*;