A
Q. What will be the output of the following Java program?
Code:
class increment
{
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
{
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
- Correct Answer - Option(C)
- Views: 6
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.