A
Q. What will be the output of the following Java code?
Code:
class operators
{
public static void main(String args[])
{
int x = 8;
System.out.println(++x * 3 + " " + x);
}
}
{
public static void main(String args[])
{
int x = 8;
System.out.println(++x * 3 + " " + x);
}
}
- Correct Answer - Option(D)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.