What is the difference between java.applet.* and java.applet.Applet ?

What is the difference between java.applet.* and java.applet.Applet ?

When you import java.applet.*, it means you are importing 
all the classes available in the java.applet package.

When you import java.applet.Applet, it means you are importing 
the single class. It is better to import the classes that 
you need instead of importing all the classes in the package.

By:Jalees
Date:2012-01-09 00:00:00

When you import java.applet.*, it means you are importing 
all the classes available in the java.applet package.

When you import java.applet.Applet, it means you are importing 
the single class. It is better to import the classes that 
you need instead of importing all the classes in the package.

By:vijaykrishnasamy
Date:2013-09-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher