Is there any need to import java.lang package?

Answer Posted / prashant

In java, by default the java.lang package is imported and
the java.lang.package package is in the java.lang package,so
for that no need to that.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a break statement and a continue statement?

798


What is use of super keyword?

741


What are the access modifiers in java?

781


Why is it called buffering?

815


What is difference between string and new string?

738


How many bits is size_t?

727


Can a class be defined inside an interface?

754


What if I write static public void instead of public static void in java?

809


Can you explain the final method modifier?

760


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

904


What is garbage collection? What is the process that is responsible for doing that in java?

861


Can we use catch statement for checked exceptions?

735


What is method overloading with type promotion?

907


What are the main differences between the java platform and other platforms?

744


Why are the objects immutable in java?

734