Q. What is the output after executing the following code snippet?
public static void main(String[] args) {                                                                              
    double a = 6;                                                                                     
    int b = 4;
    System.out.println("The passcode is " + a + b);
}
I am new to this programming language JAVA, thus from my understanding, I thought the answer should be "
The passcode is 10"
however the answer is
"The passcode is 6.04"
Can anyone help me resolve my doubt?
 
     
     
    