CSCI 261 Review

CSCI 261 Review

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

4 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is true about a method that is declared to be void?

Back

The method does not return a value.

2.

FLASHCARD QUESTION

Front

What happens if you do not write any constructors in your class?

Back

Java automatically provides a default constructor with no arguments.

3.

FLASHCARD QUESTION

Front

An ArrayList in Java can grow and shrink in size, while a regular __________ has a fixed length once it's been created.

Back

Array, array

4.

FLASHCARD QUESTION

Front

You want to create a new Student object. Which keyword must you use in Java to instantiate it?

Back

new Student()