Search Header Logo

Java Quiz - 1

Authored by Java Quizs

Computers

University

Used 5+ times

Java Quiz - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JDK, JRE and JVM are __________

platform-dependent

platform-independent

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public class Program{

    public static void main(String[] args) {

        System.out.println(null);

    }

}

null

compilation error

runtime error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public class Quiz{

    public static void main(String[] args) {

        System.out.println((Object)null);

        System.out.println((String)null);

    }

}

null

null

null

Runtime error

Compilation error

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Given the following code, which expression displays the word "Equal"?

  1. s1==s2

  1. s1.matchCase(s2)

  1. s1.equalsIgnoreCase(s2)

  1. s1.equals(s2)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Predict the output ?

Compilation error

abc

411

Runtime error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

JVM allocates default values for Instance variables?

true

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is it necessary to create objects to access local variables?

Yes

No

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?