answersLogoWhite

0

Because, we dont have the package which we want perform the specific task in the lib. Thatz why we need to create packages own and importing it.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you complie package in java?

You use javac <filename> to compile a class or package.


What software package would you use to write Java?

You would use the Java Development Kit (JDK).


What is use of user defined data in c?

to create user defined functions the user defined data is needed nd its useful to the programmer to create its own data.


What is a user-defined region?

A user-defined region is one that is classified by use. eg. hydro-electricity region


Why would you want to use user defined exception handling?

sometimes there are situations where the program is vary long which can make error debugging a long process so java provides a facility to make user defined exception handling suppose we are dividing two numbers a/b and if the user enters the value of b 0, the user wants to display an error of your own so the user can do this by using exception handling


What are the advantages of java swing over java applet?

I think you may have your terminology off a bit.javax.swing is a Java package of graphical user interface (GUI) classes.An Applet is a class designed to be embedded in a web browser.Among the classes in the Swing package is JApplet, which is an Applet extended to work with Swing components.There really is no "advantage" of one thing over the other. They are just different, if related, parts of Java.


What does import java.awt.event mean?

The statement import java.awt.event is a Java import statement that allows a program to use classes and interfaces from the java.awt.event package, which contains classes for handling event-driven programming, such as user interactions with GUI components. This package includes event listener interfaces and event classes for various types of events, such as mouse clicks, key presses, and window actions. By importing this package, developers can easily implement event handling in their Java applications.


What is the use of import in java?

First, it's an error; it should be import java.util.*; That will make all classes in the java.util package availabe for use in your Java class definition. Java is divided up into packages. Each package can hold classes and other packages. java.util is a package.


How can I install a Python package using the command "python setup.py install" for a specific user?

To install a Python package for a specific user using the command "python setup.py install", you can use the "--user" flag. This flag will install the package only for the current user, rather than system-wide. Simply add "--user" to the end of the command like this: "python setup.py install --user".


How might one use the java subclass SimpleDateFormat?

One might use the Java subclass "SimpleDateFormat" when programming a Java application that needs to display the date. This would be then be used to show the user the current date in real time.


Name the following-A key word to use the classes defined in a package?

To access the classes which are present in other packages, we have to import the package to our program using the keyword 'import'. Eg: import packagename.subpackage.Class; OR import packagename.subpackage.*; /*Adds all the class which are present in package*/ 'extends' is the keyword used to inherit the classes defined in other packages.


How do you create packag in java?

You can easily create Java packages with a few steps. # Create a set of classes that you want to be in your package. # Use the package keyword at the top of each of these classes to declare which package they're in. # Organize your source files such that a package name corresponds to a directory name. For instance, the JPanel class has a "package javax.swing;" declaration in the source file, and is located in the javax/swing folder.