wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why does it do not show an compile time erroe at line 3?
 
Similar Threads
voodoo exam_1 question
final variable.
voodoo exam_1 question
static variables
Byte