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

Why for each loop is used?

609


How do you add spaces in java?

609


Why is whitespace important?

659


What is used of static keyword in java?

661


Is string is a data type in java?

686






Is empty in java?

681


Can we declare a constructor as final?

771


Is ++ operator thread-safe in java?

740


how to write a program for sending mails between client and server

1659


What do you mean by global variable?

609


What is string builder?

551


What is generic class?

727


Explain oops concepts in detail?

680


What are the 6 functions?

608


State some advantages of java?

802