What is the purpose of premetive data types in java?

Answer Posted / parameswaran

In java contains eight type of primitive data
type:byte,short,int,long,float,double,char,boolean..
In wrapper class is called converting ordinary variable into
objects.so this concept is used for collections in
java.because collection don't know data types..only object..

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of object oriented programming?

736


What is meant by nested loop?

809


What is difference between Heap and Stack Memory?

770


Can we declare an array without size in java?

734


Explain how to force the garbage collection in java.

743


What does java final mean?

742


How can you set an applet’s height and width as a percentage?

722


What is a string what operation can be performed out with the help of a string?

768


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

767


When do we use hashset over treeset?

783


What is class??

1018


What is the base class of all classes?

775


What is module with example?

701


What is substring 1 in java?

802


Can we override private constructor in java?

737