Is there any need to import java.lang package?

Answer Posted / ashish

java.lang package is automatically loaded by JVM so no need
to define it by own.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use hashset over treeset?

527


What is double checked locking in singleton?

604


What is lazy programming?

559


Can we use static class instead of singleton?

576


What is the main method java?

528






What is java life cycle?

533


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

1600


List the features of java programming language.

556


What is the argument in java?

487


What is the applet security manager, and what does it provide?

532


What is meant by local variable and instance variable?

592


What is lazy initialization in java?

550


Explain the difference between extends thread vs implements runnable in java?

530


Is set ordered in java?

568


What are advantages and disadvantages of OOPs?

623