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 string pooling concept?
Define an abstract class with reference to java.
What are checked exceptions?
What is identifier give example?
What is += mean in java?
What is the main purpose of java?
What is number data type?
What is an example of a conditional statement?
What is java dot?
What is the difference between superclass and subclass?
What is the purpose of garbage collection in java?
Explain what access modifiers can be used for variables?
Describe method overriding
Is it possible to override the main method?
What is a blocking method in Java?