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
What is ternary operator? Give an example.
What are different exception types exceptions available in java ?
Is null == null in java?
What is basic syntax?
What are scriptlets?
What is difference between module and function?
Can we serialize arraylist in java?
How do you define a variable?
Why there are some null interface in java? What does it mean?
Can we clone singleton object?
What exactly is methodology?
What is mvc in java?
What is a nested list?
List any five features of java?
What is lexicographically smallest string?