Skip to main content

Student Review Tool

Course Flashcards

Computer science and math decks, searchable by topic, with easy, medium, and hard cards.

Step 1

Choose a course deck

Intro to Computer Science (Java)

Flashcard review

Java foundations, OOP, arrays, ArrayList, debugging, testing, and project-ready coding habits.

1 of 120
Java variablesState traceEasy

Question

What values do a and b contain after these statements?

int a = 4;
int b = a;
a = 7;

Try to say the answer and your reasoning before revealing the card.