Is there any need to import java.lang package?

Answer Posted / thomman yacob

The above example , imported package is not java.lang package.
Thats is another package java.lang.reflect.*;
Both packages are different. Do not get confused.

The below classes are available with Java.Lang.*;

Boolean,Enum,System,Object,Class,ClassLoader,Float ..ect.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is e in java?

538


Tell me the latest versions in java related areas?

578


why java uses class level type casting ?

2251


How do I find and replace in word?

530


How to handle a web browser resize operation?

539






Can we write method inside a method in java?

520


What is primitive array?

513


How to create a thread in java?

600


Define immutable object?

577


What is java ceil?

568


What is a line separator in java?

535


How do you make an arraylist empty in java?

473


What is sortedset in java?

569


What is a consumer in java?

564


Why singleton pattern is better than creating singleton class with static instance?

532