Writing Primitive Data Types

Java data types are the kind of data you can store in a variable. Primitive data types are defined by the language itself. Java defines a total of eight primitive types. Of the eight primitive data types, six are for numbers, one is for characters, and one is for true/false values. Of the six number types, four are types of integers, and two are types of floating-point numbers.
















































TypeWrapper ClassParse Method of Wrapper Class
intIntegerint parseInt(String s)
shortShortshort parseShort(String s)
longLonglong parseLong(String s)
byteBytebyte parseByte(String s)
floatFloatfloat parseFloat(String s)
doubleDoubledouble parseDouble(String s)
charCharacter(none)
booleanBooleanboolean parseBoolean(String s)








dummies

Source:http://www.dummies.com/how-to/content/writing-primitive-data-types.html

No comments:

Post a Comment