if you're thinking about things like formatting and how to use whitespace - none of that is on the exam. As far as the exam is concerned, these two pieces of code are the same:
class Dog { public static void main(
String[] a) { int x = 0; }}
and
class Dog {
public static void main(String[] a) {
int x = 0;
}
}
And you will often see code crunched together badly on the real exam. (Like the first example.)
So, the first example does NOT follow standard code "formatting" conventions, but it will compile, and it would be okay code on the real exam.
hth,
Bert