Search Header Logo

JavaCore

Authored by Đặng Duy

Computers

University

Used 3+ times

JavaCore
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JVM?

Is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.

Is a development tool for developer.

Is a set of libraries for developer.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the java file, we must use the documentation comment /**... */ (Java doc) to post information for the?

Class

Method

Fields

All mentioned above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public interface A { public void showA(); }

public class B extends A { public void showA(){} }

public class B implements A { public abstract void showA(){} }

public class B implements A { void showA(){} }

public class B implements A { public void showA(){} }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is a valid declaration within an Interface?

public static short STOP = 50;

protected short STOP = 50;

transient short STOP = 50;

final void start(short stop);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Types of Java Comments include:

Single Line Comment

Multi Line Comment

Documentation Comment

A and B are TRUE

E. A, B and C are TRUE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public interface Foo {

int k = 4; /* Line 3 */

}

Which three piece of codes are equivalent to line 3?

1. final int k = 4;

2. public int k = 4;

3. static int k = 4;

4. abstract int k = 4;

5. volatile int k = 4;

6. protected int k = 4;

2, 3 and 4

3, 4 and 5

4, 5 and 6

1, 2 and 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following option make data in an OOP language safe from external modification?

protected

public

private

default

None of above

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?