TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.11] type casting of int in char or not

public class Test {
public static void main(String a[]){

    int a=5;
    System.out.println("value of a is "+a);
    System.out.println(a+" is value of a");
}

   
}
    

Options]

A)value of a is 5
  5 is value of a
B)value of a is 
  5 is value of a
C)value of a is 5
   is value of a
D)compile time error        

Click to See Answer
A)value of a is 5
  5 is value of a    

Next | calling a function in c

Previous | precidence in calling overloaded methods in java

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