What will be the output of the following Java code? [code] class Output { public static void main(String args[]) {

Như Quỳnh

New member
What will be the output of the following Java code?
Code:
class Output 
{
        public static void main(String args[]) 
        {    
             int x=y=z=20;
        } 
}
A. compile and runs fine
B. 20
C. run time error
D. compile time error
 

Tìm kiếm

Back
Top