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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
why the primitive data type have classes?
 Question Submitted By :: Sushil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why the primitive data type have classes?
Answer
# 1
All of Java's primitive data types have an associated
Wrapper class. These wrapper classes provide useful
functions such as conversion or comparisons most of which
are used by Java implicitly.

Also a wrapper serves as a container for primitive values in
conditions where a reference type is expected.
 
Is This Answer Correct ?    2 Yes 0 No
Ranganathkini
 
  Re: why the primitive data type have classes?
Answer
# 2
These classes are Wrapper classes.We hav them as we cant 
pass an primitive directly through an method to different 
class.So we need wrapper classes to convert them to their 
already defined classes.Send them n again unpack them.
 
Is This Answer Correct ?    0 Yes 1 No
Aditya Mohata
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What modifiers are used with a top level class?  2
Difference between String and String Buffer?  3
What is the use of anonymous inner classes ? HCL8
Difference between Applet & Application?  5
Why do we use public static with the main function in Java? Infosys7
Why non nested classes in java are not having marked as protected access specifier Google1
Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface? Satyam1
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu Huawei3
What is the default modifier in Interface?  4
How does Vector implement synchronization? Ness-Technologies2
What is data abstraction? Elaborate with example? BMC3
When try and catch block is used ?  6
Can a Byte object be cast to a double value?  2
When is an object in the mean to garbage collection?  3
Can a double value be cast to a byte?  3
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist? EDS4
What is the minimum and maximum length of an identifier? TCS6
what is the difference between Java Command Line and C command Line?  1
Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.  2
What is the purpose of the File class?  2
 
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