Question: What will be the output of the following Java code? class Output { public static void main(String args[]) { int x=y=z=20; } } a) compile
What will be the output of the following Java 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
Step by Step Solution
3.52 Rating (145 Votes )
There are 3 Steps involved in it
Answer Option D compile time error ... View full answer
Get step-by-step solutions from verified subject matter experts
