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

State some situations where exceptions may arise in java?

823


Is null or empty java?

742


When do we need to use internal iteration? When do we need to use external iteration?

819


How do you create a null object?

754


What are different types of constants?

711


What is collection sort in java?

750


What is the difference between error and an exception?

756


What variables are stored in stack?

720


Can we declare the main method of our class as private?

744


What is the difference between an interface and an abstract class?

742


Explain the difference between runnable and callable interface in java?

795


What are static blocks and static initalizers in java ?

761


What is parsing in java?

704


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3813


What causes memory leaks in java?

652