Which one of the following code examples uses valid Java Syntax?

Which one of the following code examples uses valid Java Syntax?
A. A.
public class Boat {
public static void main (String [] args) { System.out.println ("I float.");
}
}
B. public class Cake {
public static void main (String [] ) {
System.out.println ("Chocolate");
>
}
C. public class Dog {
public void main (String [] args) {
System.out.println ("Squirrel.");
>}
D. public class Bank {
public static void main (String () args) {
System.out.println ("Earn interest.");
>
}

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which one of the following code examples uses valid Java Syntax?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.