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 an i/o filter?

564


What is use of inner class in java?

514


What is the difference between this() and super() in java?

539


Which software is used for java programming?

555


How do you reverse sort a list in java?

509






Explain the difference between serializable and externalizable in java?

535


How do you make a thread in java?

631


What is the synonym of procedure?

528


What is the SimpleTimeZone class?

1795


What are the 3 types of loops in java?

530


Is constructor inherited?

532


What are the 4 types of characters?

542


how can you take care of mutual exclusion using java threads? : Java thread

608


What is the difference between multiple processes and multiple threads?

570


Is a copy constructor?

574