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
Difference between method overloading and overriding.
What does those terms actually mean included in the j.d.k i.6?
Explain a situation where finally block will not be executed?
What do you know about the garbage collector?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Explain about version control?
What is Garbage Collection in Java
What is flag in java?
Why do we create threads in java?
Write a program to reverse a number in java?
How do you write a scanner class in java?
is it possible to instantiate the math class?
how to run ecllipse with jettyserver for windows environment using batch file
Write a program to print 15 random numbers using foreach of java 8?
What are different exception types exceptions available in java ?