This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Data types in java
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
Data types in java refer to type of data that can be stored in variable. As Java is strongly typed language, you need to define datatype of variable to use it and you can not assign incompatible datatype otherwise the compiler will give you an error. The compiler will give you an error with this message – “Type mismatch: cannot convert from String to int”. There are two types of data types in java. Primitive data types Referenced data types. Primitive data types: Primitive data types are those datatypes which are defined by java language itself. There are 8