Search Header Logo

Java Programming MCQ Questions

Authored by pradeep kanna

Other

University

Used 1+ times

Java Programming MCQ Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Java keyword?

static

Boolean

void

private

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int variable in Java?

8 bits

16 bits

32 bits

64 bits

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is used to create an object in Java?

create

new

class

make

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default value of a boolean variable in Java?

true

false

0

null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an OOP concept in Java?

Encapsulation

Inheritance

Compilation

Polymorphism

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is the entry point of a Java program?

start()

init()

main()

run()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to inherit a class in Java?

implements

extends

inherits

derive

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?