Skills101
← All practice quizzes

Quiz: Java Introduction

5 questionsNo time limitPass: 60%+10 XP on first pass

Why Java is everywhere in Indian IT, how javac and the JVM run your code on any OS, JDK vs JRE vs JVM, and your first program explained line by line.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does the javac command produce?

  2. Question 2

    What does this print?

    public class Main {
        public static void main(String[] args) {
            System.out.println("A" + 1 + 2);
        }
    }
    
  3. Question 3

    Which one do you need to WRITE and compile Java programs?

  4. Question 4

    What makes Java "write once, run anywhere"?

  5. Question 5

    What does this print?

    public class Main {
        public static void main(String[] args) {
            System.out.println(5 + 3 + "x");
        }
    }