why the primitive data type have classes?

Answer Posted / zoozoo

because primitive datatypes cannot directly be used through network, like we cannot send them to one n/w to another. so by using wrapper classes to wrap them into objects, which can be sent through n/w.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you execute a thread in java?

503


What are new features introduced with java 8 ?

550


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

585


Can we extend singleton class?

527


Does printwriter create a file?

538






What is the collection interface?

587


Why chararray() is preferred over string to store the password?

525


Can we force the garbage collection to run?

535


What is meant by bytecode?

574


What is the difference between abstract class and interface1? What is an interface?

556


In java how do we copy objects?

549


What’s the difference between applets and standalone program?

533


What is class??

757


Does java allow default arguments?

592


How do I remove a character from a string in java?

499