Classifying Variables as Primitive or Reference in Java

Report a typo

Consider the following code snippet in Java. What are the correct classifications for variables a, b, and str?

int a = 5;
float b = 3.14f;
String str = "Hello";
Select one option from the list

Create a free account to access the full topic