Filters
Question type

Study Flashcards

What happens after a programmer successfully compiles a Java program named "First.java"?

Correct Answer

verifed

verified

If you receive no error messages after c...

View Answer

Briefly describe the elements of the main() method: public static void main(String[] args) { Java code... }

Correct Answer

verifed

verified

In the method header public static void ...

View Answer

Locating and repairing all syntax errors is part of the process of ____ a program.


A) interpreting
B) compiling
C) debugging
D) executing

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

Describe the components (objects and classes) that are used in the statement System.out.println() .

Correct Answer

verifed

verified

Within the statement System.out.println(...

View Answer

In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses , you type cd MyClasses and press Enter.


A) Windows
B) Java
C) graphical
D) DOS

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability.

A) True
B) False

Correct Answer

verifed

verified

Java contains a class named ____ that allows you to produce dialog boxes.


A) JBox
B) JOptionPane
C) JDialog
D) JGUI

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

If an object's methods are well written, the user is unaware of the low-level details of how the methods are executed, and the user must simply understand the interface or interaction between the method and the object.

A) True
B) False

Correct Answer

verifed

verified

____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.


A) Applets
B) Methods
C) Arguments
D) Objects

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

When you define a Java class using an identifier, what are the requirements you need to know?

Correct Answer

verifed

verified

You can define a Java class using  any n...

View Answer

A ____ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.


A) syntax error
B) run-time error
C) package
D) Java API

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Identify why a class named first would be different from a class named FIRST . Explain why it is important to be aware of uppercase and lowercase values when writing Java programs?

Correct Answer

verifed

verified

Java is case sensitive. Programmers must...

View Answer

____________________ comments are a special case of block comments that are used to generate documentation.

Correct Answer

verifed

verified

When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages.

A) True
B) False

Correct Answer

verifed

verified

Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called.

A) True
B) False

Correct Answer

verifed

verified

Whenever a method requires multiple arguments, the arguments are always separated with ____.


A) commas
B) periods
C) forward slashes
D) brackets

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

   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?


A) public
B) static
C) void
D) println

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

Explain the purpose of arguments and why it is necessary to pass arguments to a method.

Correct Answer

verifed

verified

Arguments are pieces of information that...

View Answer

Why is it important for programmers to use program comments?

Correct Answer

verifed

verified

Programmers use comments to leave notes ...

View Answer

____ refers to the hiding of data and methods within an object.


A) Instance
B) Inheritance
C) Passed
D) Encapsulation

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

Showing 21 - 40 of 61

Related Exams

Show Answer