
"3"+4+5 and 3+6+"4" what is the out put please tell me the output

class Hello{
public static void main(String[] args) {
System.out.println("3"+4+5);
System.out.println(3+6+"4");
}
}
The given expression displays the following output.
345 for first expression as the code takes the 3 as string and append the other two values to it.
94 for the second one as the code takes the first two values integer and add them. Then take the 4 as string and append it to the resulted value.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.