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
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
java.lang is default package contains some fundamendal
classes for java language. For example it contains classes
like ClassLoader , Class and System . JVM loads tha class
file using this ClassLoader ... so its automatically
imported by jvm also known as default package.java.util
contains all the utility classes needed
java language and java util both are built in package.the java util package define a number of useful classes and that are use for working with groups of object.
Is This Answer Correct ?
Other Core Java Interview Questions
I need some details about an employee. i have only the
employee id in my presentation layer(JSP).I entered that ID
and click "Show Details" Button. Question is how the JSP
pass that id to Controller layer and DAO and what mechanism
we are using to retrive data from DB and how the data
passed to JSP as a Output. Please explain in detail.