What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
int x=y=z=20;
}
}
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
Answer: Option D
Join The Discussion