0
What is the output of the following Java program?
public class Main {
public static void main(String[] args) {
String s = "Hello";
System.out.println(s.substring(1, 3) + s.charAt(4));
}
}- Aelo
- Bell
- Cello
- DHel
Correct answer: A