Which two packages are automatically imported into the java source file by the java compiler?

Give:

Public Class Test {
}

Which two packages are automatically imported into the java source file by the java compiler?

Give:

Public Class Test {
}

Which two packages are automatically imported into the java source file by the java compiler?

A.
java.lang

B.
java.awt

C.
javax.net

D.
java.*

E.
The package with no name

Explanation:
For convenience, the Java compiler automatically imports three entire packages for each source file:
(1) the package with no name, (2) the java.lang package, and (3) the current package (the package for the current file).
Note: Packages in the Java language itself begin with java. or javax.
Incorrect answers:
java.awt: basic hierarchy of packages for native GUI components;
javax.net: networking operations, sockets, DNS lookups, etc.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Jazz

Jazz

A,E
Java compiler automatically imports three entire packages for
each source file: (1) the package with no name, (2) the java.lang package, and (3) the current
package (the package for the current file).

James

James

The Answer is A, E.

Google

Google

Just beneath, are various completely not connected sites to ours, nonetheless, they are certainly really worth going over.