what is the meaning of java.lang and java.util

Answer Posted / bhuvaneswari kamaraj

java.lang is a package which contains the classes like
System, String, String Buffer etc., This package doesnt
have to be explicitly imported as they are imported by
default.
Whereas Java.Util is a package which contains classes like
Date, Vector, Dictionary, hashtable etc., This has to be
imported everytime you use it in your program

Is This Answer Correct ?    21 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you decide when to use arraylist and linkedlist?

532


Explain creating threads by extending thread class ?

578


What is package private scope in java?

535


What is a protected void?

506


Define a java class.

803






Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

555


What are the uses of synchronized keyword?

556


Is minecraft java edition free?

577


What is Java Shutdown Hook?

611


What does main method?

565


What is array command?

559


What is covariant return type?

644


What does this () mean in constructor chaining concept?

560


What are the types of arrays in java?

559


Java is pass by value or pass by reference? Explain

534