Java Programming Quiz

Java Programming Quiz

University

18 Qs

quiz-placeholder

Similar activities

JAVA UNIT 1 PART 2

JAVA UNIT 1 PART 2

University

15 Qs

Quiz 1 OOPs Group A Variable Data Type

Quiz 1 OOPs Group A Variable Data Type

University

20 Qs

oops using java quiz

oops using java quiz

University

15 Qs

II CSM A & B

II CSM A & B

University

15 Qs

Programming Fundamentals in java

Programming Fundamentals in java

University

18 Qs

Java Básico

Java Básico

University

20 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Java Programming Quiz

Java Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

vanathi mathiyazhagan

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary feature of Java that allows it to run on any device?

Platform Independence

Robustness

Multithreading

Object-Oriented

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type in Java?

int

String

char

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JVM stand for?

Java Visual Machine

Java Virtual Machine

Java Variable Method

Java Verified Model

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a class in Java?

define

struct

class

object

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: System.out.println(5 + 3);?

5 + 3

53

8

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following access modifiers allows visibility to subclasses?

Default

Private

Public

Protected

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'final' keyword in Java?

To handle exceptions

To declare constants

To create threads

To define interfaces

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?