The int is a keyword in java that is used to define
32-bit signed integer (primitive type) values. Keywords
are basically reserved words which have specific meaning relevant to a compiler.
The keyword int in java programming language is also used to
declare an expression, method return value, or variable of integer type.
in java programming language wraps a int type primitive value in an object. An
Integer type object includes only a single field whose type is
Wrapper class is used to convert the int primitive values into Integer type
objects. In addition to this Integer wrapper class also provides methods for
converting a int to String and vice versa as well as other constants and methods
that are useful to deal with int type.
Syntax: Here is the syntax that displays how to declare and define integer type values.
Example: Lets take an example that defines how to declare and define an integer type value
Note: Here are some points which must be noted.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: November 11, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles