Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Programming Study Set 2
Quiz 1: Creating Java Programs
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
It is best to use the ____ available text editor when writing Java programs.
Question 22
Multiple Choice
If a compiler detects a violation of language rules, it refuses to translate the class to ____.
Question 23
Multiple Choice
{ public static void main(String[] args) { System.out.println("First Java application") ; } } Given the above code, which item identifies the access specifier?
Question 24
Short Answer
A(n) ____________________ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.
Question 25
Multiple Choice
It is a tradition among programmers that the first program you write in any language produces "____" as its output.
Question 26
Multiple Choice
public class First { public static void main(String[] args) { System.out.println("First Java application") ; } } Given the above code, which item identifies that the method will work without instantiating an object of the class?
Question 27
Multiple Choice
After a successful compile, you can run the class file on any computer that has a ____.
Question 28
Multiple Choice
public class First { public static void main(String[] args) { System.out.println("First Java application") ; } } Given the above code, which item identifies the name of the class?
Question 29
Short Answer
The ____________________ is also called the Java class library; it contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes.
Question 30
Short Answer
____________________ comments are a special case of block comments that are used to generate documentation.
Question 31
Short Answer
You use an import statement when you want to access a built-in Java class that is contained in a group of classes called a(n) ____________________.
Question 32
Multiple Choice
When you run a Java application using the ____ command, do not add the .class extension to the filename.
Question 33
Short Answer
In programming, named computer memory locations are called ____________________ because they hold values that might vary.
Question 34
Multiple Choice
Java contains a class named ____ that allows you to produce dialog boxes.
Question 35
Multiple Choice
If you receive an error that states, "Exception in thread 'main' java.lang.NoClassDefFoundError," when you try to execute the application, you probably do not have your ____ set correctly.
Question 36
Multiple Choice
Whenever a method requires multiple arguments, the arguments are always separated with ____.
Question 37
Multiple Choice
A ____ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.
Question 38
Multiple Choice
public class First { public static void main(String[] args) { System.out.println("First Java application") ; } } Given the above code, which item identifies the method's return type?
Question 39
Multiple Choice
____ is the process the compiler uses to divide your source code into meaningful portions; the message means that the compiler was in the process of analyzing the code when the end of the file was encountered prematurely.