COSC 3011 - Software Design Spring 2025 Quiz 1

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/7

flashcard set

Earn XP

Description and Tags

Flashcards for COSC 3011 - Software Design Spring 2025 Quiz 1 review.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

Integer Data Types in Java

Integer data types in Java: byte, short, int, and long.

2
New cards

How to make a method global in Java

Make the method "public static".

3
New cards

How to compile a Java program

javac HelloWorld.java

4
New cards

Types of variables in Java

Primitives and Object references.

5
New cards

Declare and initialize an array of integers in Java

int[ ] nums = {1, 2, 3, 4, 5};

6
New cards

Does Dog[ ] dogs = new Dog[10]; create 10 Dog objects?

False. It creates an array to hold 10 Dog references.

7
New cards

How many Book objects and object references are created?
Book b1 = new Book();
Book b2 = new Book();
Book b3 = b2;
b2 = null;

2 Book objects and 3 object references.

8
New cards

Where does the JVM allocate memory for an object created with the keyword new?

Heap