View Single Post
  #2 (permalink)  
Old 03-19-2008, 02:41 PM
Rajesh Rajesh is offline
Member
 
Join Date: Mar 2008
Posts: 3
Rajesh is on a distinguished road
System.in.read() method reads the next byte of data from inputstream. The Value byte is returned as an int in the range 0 to 255. If no byte is available the value -1 is returned.

But in the code fragment int a=3; we are assinging integer value to position allocated for integer variable a. So it creates no problem.

hope is usefull,
thank you
Reply With Quote