TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.5] assigning all small variables

public class loop {
    public static void main(String[] args) {
        byte b=016;
        short s=0x16;
        char c='\16';
        int a=b+s+c;
        System.out.println(a);
    }
}
    

Options]

A)48
B)50
C)Run time exception
D) Compiler error        

Click to See Answer
B)50    

Next | what do we need to do with the following program to make it better? select any 1 option

Previous |

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions