answersLogoWhite

0


Best Answer

The java.lang package is invoked by default by all Java classes. We need not import the classes inside the Java.lang package inside our class. They are automatically imported into all Java classes.

Example: java.lang.String

If you have to declare an array list the import statement import java.util.ArrayList; must be there in your class declaration. If this import is not present your code using the ArrayList would not compile or work

But if you are going to use a String, you can directly use it because it would be automatically imported.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Name the following-A package that is invoked by default?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


What tab in the package properties window enables you to change the default name of a package?

the general tab


What is bind in Linux?

BIND is the default package for Domain Name service(DNS) in Linux based systems, one of the widely used DNS servers across the internet.


If you don't supply any access specifier with class name than which specifier it should have?

It will have the default access which means - this class will be accessible only within the current package.


What is default file name in PowerPoint?

The default file name is Presentation 1 The default file extension is .pptx


On Java EE IDE Eclipse what is the package name?

For beginning use of Eclipse when creating a class file leave the package name blank and it will automatically default to your current project. Packages are used in programs with many classes, interfaces, etc. to group similar aspects of the program together to make for better organization. ----I don't know what you mean by creating a class file but i am trying to create a new project and where it sais package name i have no clue what to put and when i leave blank it sais "Package name must be specified" please help


Where are applications installed in Linux Mint by default?

The most common places would be in: /bin (system utilities) or /usr/bin (usually user programs).Some applications like Steam will install the game library in your user's home folder (by default) instead of doing it Windows-style which would be in the Program Files directory.


What is the name of the default site link that is created when Active Directory is first installed?

The default link name is Default first site


How do we save packages and interface in java?

with the package name syntax: <package name> with the interface name.


The default name of an Excel document before saving it?

Book1.xls is the default name for a new document in Excel.


Who are the characters in Pokemon Ranger?

Male character's default name is Ben. Female character's default name is Summer.


Who are the characters in Pokemon Ranger 3?

Male character's default name is Ben. Female character's default name is Summer.