Java Class and Object Concepts

Java Class and Object Concepts

Assessment

Flashcard

Information Technology (IT)

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a class in Java?

Back

A blueprint to create objects.

2.

FLASHCARD QUESTION

Front

What is an object in Java?

Back

An instance of a class.

3.

FLASHCARD QUESTION

Front

Which of the following is allowed when overloading a method? public int sum(int one, int two) public int sum(int three, int four), public int sum(int one, int two) public int sum(double one, int two), public int sum(int one, int two) public int sum(int two, int one), Method Overloading is not possible in Java.

Back

public int sum(int one, int two) public int sum(double one, int two)

4.

FLASHCARD QUESTION

Front

In the statement
Car myCar = new Car("red");
Which is the object?

Back

myCar

5.

FLASHCARD QUESTION

Front

How many objects can be made from a class? Options: None, you make classes from objects, one, As many as you want, All of the above

Back

As many as you want

6.

FLASHCARD QUESTION

Front

This is syntax of creating ______.

Back

object