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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 are wrapper classes?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are wrapper classes?
Answer
# 1
wrapper classes allow primitive data types to be accessed 
as objects.Once assigned a value the value of wrapper 
classes can't be changed.
 
Is This Answer Correct ?    14 Yes 2 No
Niranjanravi
 
  Re: What are wrapper classes?
Answer
# 2
wreapper classes will allow the primitive types to act like
objects
 
Is This Answer Correct ?    18 Yes 0 No
Ravikiran
 
 
 
  Re: What are wrapper classes?
Answer
# 3
Wrapper class : A class to enclosed(wrapped) the primitive 
data type.

eg: Integer - it wrapp the int primitive data type.
     Character - it wrap the chat data type.

       int a=10;
	Integer i=new Integer(a);  

Java Wrapper class:
      
Integer,Byte,Short,Character,Boolean,Long,Float,Double.
 
Is This Answer Correct ?    2 Yes 0 No
Vijayakumar Chinnasamy
 
  Re: What are wrapper classes?
Answer
# 4
The wrapper classes can take constructors of either the 
type they are designed to wrap or of a String that can be 
converted to that type. Thus the Integer class can take a 
number that could be contained by an int, but an error will 
occur if you try to pass a number with a floating point 
component. Remember that the wrapper classes are just that 
classes, they are not primitives and instances of the 
wrappers can only be manipulated in the same way as any 
class. You may get questions on the exam with code that 
uses standard math operations to manipulate instances of 
wrappers. You can of course use the + operator where it 
would implicitly call the toString method, but as soon as 
you see the - * or % operator, beware.
 
Is This Answer Correct ?    1 Yes 3 No
Guest
 
  Re: What are wrapper classes?
Answer
# 5
wrapper classes are those who wrapped the primitives one for
sprcific purposes.
 
Is This Answer Correct ?    0 Yes 0 No
Adeel
 
  Re: What are wrapper classes?
Answer
# 6
Wrapper classes are classes that are used to make primitive
data types into objects, and to make wrapped objects into
primitives because

As we know that vector in java can hold only object; but
can't directly store primitive data types, like int,float,
char, long, double. therefore we need to convert simple data
type to object. This can we done using wrapper classes.
 
Is This Answer Correct ?    1 Yes 0 No
Irshad Ahmad
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between overloading and overridding?  4
How many methods does cloneable interface contains?  2
What is the use of bin and lib in JDK?  3
what is polymorphism?  2
what is difference between perfom() & excute() ? IBM2
define System.out.println(); what is the meaning!  8
When is an object in the mean to garbage collection?  3
What is update method and when it is called?  1
What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?  2
why java does not support mulitple inheritance directly? TCS2
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
Can u overload main()method.Give with example. IBM2
How to convert a string to long?  2
What is an abstract class and abstract method?  4
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } } DNS1
What is the specification of ?CODEBASE? in an applet?  1
There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation? KPIT3
heavy components means what?  4
What is an abstract class? Wipro5
Write a program for recursive Traverse?  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