S
Q. What is the output for the below code ?
Code:
public class Test
{
public static void main(String[] args)
{
byte b = 6;
b+=8;
System.out.println(b);
b = b+7;
System.out.println(b);
}
}
{
public static void main(String[] args)
{
byte b = 6;
b+=8;
System.out.println(b);
b = b+7;
System.out.println(b);
}
}
- Correct Answer - Option(C)
- Views: 171
- Filed under category JAVA
Discusssion
Login to discuss.