Exam 1: Creating Your First Java Classes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

It is best to use the ____ available text editor when writing Java programs.

(Multiple Choice)
4.9/5
(39)

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

(Essay)
4.7/5
(49)
Match each term with the correct statement below.
Premises:
Creating classes that share from existing classes
Responses:
inheritance
Java virtual machine (JVM)
debugging
Correct Answer:
Verified
Premises:
Responses:
Creating classes that share from existing classes
inheritance
(Matching)
4.9/5
(32)

____ 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.

(Multiple Choice)
4.8/5
(32)

Why is creating a GUI environment for users a natural use for object orientation?

(Essay)
4.8/5
(47)

A program written in ____ is the most basic circuitry-level language.

(Multiple Choice)
4.9/5
(39)

A(n) ____ is a GUI object resembling a window in which you can place messages you want to display.

(Multiple Choice)
4.8/5
(38)

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

(Essay)
4.8/5
(35)

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

(True/False)
4.8/5
(36)

A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.

(True/False)
4.7/5
(36)

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?

(Multiple Choice)
5.0/5
(45)

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

(True/False)
4.7/5
(39)

A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class.

(Multiple Choice)
4.8/5
(38)
Match each term with the correct statement below.
Premises:
Translates an entire program before carrying out the statement
Responses:
whitespace
Machine language
attributes
Correct Answer:
Verified
Premises:
Responses:
Translates an entire program before carrying out the statement
whitespace
(Matching)
4.8/5
(34)

A class named  first  is different from a class named  FIRST because ____.

(Multiple Choice)
4.9/5
(42)
Match each term with the correct statement below.
Premises:
A GUI object resembling a window in which you can place messages you want to display
Responses:
method
attributes
debugging
Correct Answer:
Verified
Premises:
Responses:
A GUI object resembling a window in which you can place messages you want to display
method
(Matching)
4.9/5
(45)
Match each term with the correct statement below.
Premises:
Documentation comments
Responses:
Machine language
whitespace
method
Correct Answer:
Verified
Premises:
Responses:
Documentation comments
Machine language
(Matching)
4.9/5
(41)

   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?

(Multiple Choice)
4.9/5
(40)

Once an application is written and saved, the Java class must be compiled. Describe what two procedures must occur in order to view the output of the application.

(Essay)
4.7/5
(38)

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.

(Multiple Choice)
4.9/5
(31)
Showing 21 - 40 of 76
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)