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

What is difference between next () and nextline () in java?

534


What is == and === in javascript?

553


What are java packages? What's the significance of packages?

619


Which methods are used during serialization and deserialization process?

550


How many techniques can be employed to create a string object?

551






Is boolean a wrapper class in java?

598


What are keywords give examples?

576


What is scanner in java?

534


What are the two ways to create a thread?

530


Does treeset use compareto?

538


What are static blocks in java ?

607


Why does java have two ways to create child threads?

464


How can you write a loop indefinitely in java programming?

547


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

680


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

579