- 1
What's the value of "a" after execution of the code?
public class Program { public static void main(String[] args) { double a,b,c; double x_y,a_b,c_d; a=x_y=44; b=c_d=62; c=a_b=58; a=6; b=3; c=9; System.out.println("value of a & x_y :"+a+" & "+x_y); System.out.println("value of b & c_d :"+b+" & "+c_d); System.out.println("value of c & a_b :"+c+" & "+a_b); } }
3 Respostas
0
it should be 6. code looks clean. the result should be obvious if you run it.
0
yes. it is 6.
0
6