ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (146)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
what is the meaning of java.lang and java.util
 Question Submitted By :: Core-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
java.lang and java.util are built in packages that contains
classes that we use in the program eg.java.lang contains
classes System,String,StringBuffer etc.and java.util
contains Date etc.
 
Is This Answer Correct ?    26 Yes 6 No
Nimish
 
Answer
# 2
Actually util stands
dere for utility n dese
r packages dat r
predfined classes in
java language n used
in programs just lyk
dere r some
predefined header files
in c.
 
Is This Answer Correct ?    8 Yes 2 No
Babloo Jha
 
 
 
Answer
# 3
There is no need to import java.lang package, it implicitly
available to java file whereas it is mandatory to import
java.util explicitly .
 
Is This Answer Correct ?    7 Yes 2 No
Kartik Kudada
 
Answer
# 4
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
 
Is This Answer Correct ?    10 Yes 6 No
Seeli Louis
 
Answer
# 5
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 ?    5 Yes 1 No
Bhuvaneswari Kamaraj
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
system.out.println(1 + 3);   8
hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class   1
What method is used to compare two strings ?   4
what is purpose of collections.unmodified() method..? Accenture 1
IS method overriding is Duplication of Methods? CybAge 5
Is 'null' a keyword?   8
How many types of syncronization?   2
What is UNICODE?   3
What is meant by Session? Explain something about HTTP Session Class?   1
aabccdee Find the used alphabets as abcde ?   3
Explain the concept of polymorphism with examples?   6
What is user defined exception?   4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com