Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why does it do not  show an compile time erroe at line 3? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why does it do not  show an compile time erroe at line 3?" Watch "why does it do not  show an compile time erroe at line 3?" New topic
Author

why does it do not show an compile time erroe at line 3?

chirthal prasad
Greenhorn

Joined: Aug 17, 2006
Posts: 2
class XT {

public static void main ( String ka [ ] ) { // ---> line 1
byte b = 10 , // ---> line 2
c = 10 , // ---> line 3
x = (byte) ( b + c ) ; // ---> line 4
System . out . println ( x ); // ---> line 5
}
};
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
You defined multi-variables and seperated them by ",".
[ October 05, 2006: Message edited by: wise owen ]
 
 
subject: why does it do not show an compile time erroe at line 3?