File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
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 ]
 
jQuery in Action, 2nd edition
 
subject: why does it do not show an compile time erroe at line 3?