ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is wrapper class and its uses?
 Question Submitted By :: Guru
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is wrapper class and its uses?
Answer
# 1
wrapper class used access the primitive data types as objects.
we cant store primitive data in arraylist,hashtable  so we
using wrapper class used to store primitive data types as
objects,caz objects only can store in collections
 
Is This Answer Correct ?    1 Yes 0 No
Guru
 
  Re: what is wrapper class and its uses?
Answer
# 2
A class enclosed or Wrapped the primitive data type is
called wrapper class.

Number class is the super class for Wrapper class. subclass
of Number classes are   Byte,Short,Intger,Long,Float,Double,
Character

primitive values              Wrapper class

byte                          Byte
short                         Short
int                           Integer
long                          Long
float                         Float
char                          Character  

Mostly the wrapper classes are used to pass the date thru
networks/serializable.
 
Is This Answer Correct ?    0 Yes 0 No
Vijayakumar Chinnasamy
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What Method and class used for Connection pooling ? Wipro4
What is a Java package and how is it used?  2
What class is used to implement a Throwable array?  3
Different types of modifiers? RoboCom3
What are the two ways you can synchronize a block of code? Ericsson3
System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0 Accenture6
What is the basic functionality of DataOutput interface in java? TCS2
What is the protocol is used in type4 driver? CMC2
What is 3-tier model? Wipro3
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service Accenture1
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract? Logica-CMG2
How can we find size of the object ? RazorSight1
How does serialization work Ordain-Solutions2
Is Java is 100% pure OOPS? Explain?  15
What is the order of method invocation in an Applet?  1
What are interfaces?  1
What is difference between Eclips and MyEclips?  2
Iterator in the HashMap is fail-safe means what? IBM9
what is Dictionary? and what purpose it is used for?  2
Explain the relationship between the Canvas and Graphics class?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com