Java OOP

Java OOP

Assessment

Flashcard

Computers

Professional Development

Practice Problem

Medium

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Composition is a

Back

has-a relationship

2.

FLASHCARD QUESTION

Front

What is not a Java primitive data type? Options: float, byte, Boolean, char

Back

Boolean

3.

FLASHCARD QUESTION

Front

Which is not a valid way to define an array? Options: int[3] i = new int[]; int[ ] i = {1,2,3}; int[ ] i = new int[ ]{1, 2, 3}; int[ ] i = new int[3];

Back

int[3] i = new int[];

4.

FLASHCARD QUESTION

Front

It keeps the data and the code safe from external interference.

Back

Encapsulation

5.

FLASHCARD QUESTION

Front

Which data type is not supported by ArrayList? Integer, String, double, Boolean

Back

double

6.

FLASHCARD QUESTION

Front

What is an instance of a class?

Back

Object

7.

FLASHCARD QUESTION

Front

Autoboxing converts primitive to corresponding object wrapper class

Back

true

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?