Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chirthal prasad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You defined multi-variables and seperated them by ",".
[ October 05, 2006: Message edited by: wise owen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic