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 visibility mode?

525


What is the point of polymorphism java?

537


What are the types of web technologies?

520


Give few difference between constructor and method?

514


What are internal variables?

547






What is udp in java?

529


What is a boolean field?

523


Name component subclasses that support painting in java programming?

628


How do you define a method?

507


What are the two parts of a conditional statement?

508


What is object class in java?

499


Why do we need data structure in java?

568


State two differences between C and Java.

689


How do you square a number?

576


What is java objectoutputstream?

539