1/16
Looks like no tags are added yet.
What method is required for a Java application to be runnable?
public static void main(String[] args)
What file extension is used for Java source code?
.java
What file extension is used for Java bytecode?
.class
What is the purpose of the javac compiler?
It translates Java source code into bytecode, making it platform-independent.
What keyword is used to ignore comments in Java?
// (double forward slash) for single-line comments.
What keyword is used to make external classes and packages accessible in Java?
import
What keyword is used to create a new object in Java?
new
What is a superclass in Java?
A base class that defines what objects can do.
What does the extends keyword indicate in Java?
It indicates that a class is a subclass of another class, allowing inheritance.
What is the default starting position of a Robot created with the default constructor?
(1, 1) facing Display.EAST with 0 beepers.
What is the default starting position of an Athlete created with the default constructor?
(1, 1) facing Display.NORTH with Display.INFINITY beepers.
How do you instantiate a Robot with custom starting data?
Using syntax like Robot john = new Robot(4, 1, Display.NORTH, 5);.
What must a Java class name do in relation to its filename?
It must perfectly match the filename.
How are blocks of code grouped in Java?
Using matching curly braces.
What do methods in Java always include?
Parentheses, as seen in commands like move(); or putBeeper();.
Are identifiers in Java case-sensitive?
Yes, identifiers are case-sensitive.
What restrictions apply to naming identifiers in Java?
Identifiers cannot be keywords and must only contain letters, numbers, and underscores.