The question asks
Which of the following options contain correct code to declare and initialize variables to store whole numbers?
I got all the answers right but I had an extra answer that would make my response incorrect according to this
test.
Apparently
double a5 = 0;
is incorrect. Although, this obviously will compile and run.
Are there tricky questions on the actual OCA exam like this? Where the code will compile and run but the question is looking for something very specific such as which data-types are designed specifically to store integers?
public void main
String array,
Ted