What will be displayed in the console?

public class StringTest {
    public static void main(String[] args) {
        int result = 12 + 2 * 5 % 3 - 15 / 4;
        String x = 12 - 6 + "Hello" + 7 + 5;
        
        System.out.println(result + " - " + x);
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes