Dayrvia
Jv

Java · Primitives and references · Practice questions

Try 2 questions on Java · Primitives and references, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

2 questions
Q1 What is a after b is incremented?
int a = 3;
int b = a;
b++;
Q2 What is the value of a[1]?
int[] a = {1, 2};
int[] b = a;
b[1] = 7;
Original practice questions written for Dayrvia.