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   interview questions urls   External Links  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 ?    0 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 0 No
Aditya Mohata
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what ide u r using and wat version, how wil u build the project etc ?  2
what are the new features available in java 1.5 version? Motorola1
is memory to the abstract class allocated ..or objects not instantiated TCS4
Can an object be garbage collected while it is still reachable?  2
what is the use of servlet engine? Photon2
How are Java source code files named?  2
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}  4
write a progam hashmap & hashtable? IBM1
What are E and PI?  1
In what ways you can handle exception ?  2
Why is prepared Statement, Callable Statement used for? What is the need of Batch updates? Logica-CMG1
Which java.util classes and interfaces support event handling?  2
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable? HCL3
What is the purpose of the finally clause?  2
os is developed in c no java is more secured then c na why dont the os developed is developed using java  1
what models are available for event handling?  1
What are teh sub-classes of a component class?  2
What will happens if you opened Internet Explorer 4 times?  2
What is meant by final class, methods and variables?  2
What is an abstract class and abstract method?  4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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