Is there any need to import java.lang package?

Answer Posted / srikanth

no, not needed it is included by default by JVM

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class have 2 constructors?

492


What is the difference between iterator and enumeration ?

510


Explain jvm, jre, and jdk?

557


What are different types of control structures?

487


Can anonymous class have constructor?

548






What is the purpose of using java.lang.class class?

520


What kind of variables a class can consist of?

630


How many types of methods are there in java?

523


Implement two stacks using a single array.

566


What is the concept of multithreading?

516


can any body body expalin best definitions & best real time exaples for opps concepts.

1835


Define how does a try statement determine which catch clause should be used to handle an exception?

578


Explain the difference between collection api and stream api in java8?

503


What is an error in java?

635


what are different ways in which a thread can enter the waiting state? : Java thread

488