0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
System.out.println('a' + 1 + "b" + 'c');
System.out.println(true ? 1 : 2.0);
}
}- Ab1bc 1
- B98bc 1.0
- C98bc 1
- Dabc 1.0
Correct answer: B