answersLogoWhite

0


Best Answer

java.lang defines the core Java language, without which all of Java would fail to operate. It is therefore the default package that must be used with every program that will run Java, as it contains all of the logic necessary for exception handling, threads, classes that represent primitives (and their associated logic), and so on.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

java,lang

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which package in java is treated as default package?
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.


Which is java default access specifier?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


What is the default access specifier in java?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


What is the default access specifier of Java?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'.


Default access specifier in java?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'.


Supermost package of java?

The supermost package of Java is the "java" package.


What is access modify in java?

Default- visible to the packagePublic - visible to allProtected- visible to the package and all subclassesPrivate- visible to the class


Is it true default access modifire?

Default access modifier is package. So when you want a method or object variable to be visible within a package, you don't have to insert an access modifier. For public, private or protected, you need to metion them in your java code.


What is meant by default access of class in java?

That's what you get when you don't include any access specifier, such as "public" or "private". This default access gives access to any class in the same package.


Are the private access specifiers in Java and C plus plus the same?

No.In Java, the private access modifier restricts member access to the class in which the member is declared. But in C++, private members are also accessible to friends of the class in which they are declared. The rough equivalent in Java would be package private access.Not that Java doesn't have access specifiers, it has access modifiers. When no modifier is specified, default access is implied, which is package private for classes and public for interfaces.


What is a collection of related classes called in java?

a package


How do I turn Java on?

Install Java. It is "on" by default.