why the primitive data type have classes?

Answer Posted / aditya mohata

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 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class forname used for?

547


how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)

1911


I want to re-reach and use an object once it has been garbage collected. How it's possible?

559


Is alive and join method in java?

543


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1667






Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

560


What is the byte range?

584


What is the difference between the font and fontmetrics classes in java programming?

509


How do you find the independent variable?

519


How do you end a program?

554


write a program that list all permutations of ABCDEF in which A appears before B?

2015


Explain importance of finally block in java?

588


Difference between this() and super() ?

583


What are the three types of design patterns?

523


Explain the term virtual machine?

596