GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the output of the following portion of code? int x =…

What is the output of the following portion of code? int x = 10; int y = 0; try { y = x / 0; } catch (Exception ex) { y = x * 2; } finally { y = 3; } System.out.println(y);

Read Details

Fill in the blanks to make a PrintWriter object named writer…

Fill in the blanks to make a PrintWriter object named writer on a File object named file. _____ _____ = _____ _____(_____);

Read Details

Which of the following are terms for a subclass?

Which of the following are terms for a subclass?

Read Details

Fill in the blanks to create a class named Orange that imple…

Fill in the blanks to create a class named Orange that implements the interface named Edible. public _____ _____ _____ _____ { // Guts go here! }

Read Details

Which of the following is a type of exception that Java requ…

Which of the following is a type of exception that Java requires you to either handle or declare with throws?

Read Details

If a class does not override the equals() method from Object…

If a class does not override the equals() method from Object, what does the default equals() method do?

Read Details

You’re writing an automobile racing game. You want both cars…

You’re writing an automobile racing game. You want both cars and trucks to be usable in the game, and you also want the player to be able to upgrade and improve the driver’s abilities and skills. So you decide to make a Vehicle class, a Car class, a Truck class, and a Driver class. Which of the following describes the most sensible relationship for these classes?

Read Details

What happens if you try to write to a text file that already…

What happens if you try to write to a text file that already exists?

Read Details

Which best describes the possible inputs to the following me…

Which best describes the possible inputs to the following method? public static Number findMax(Number number)

Read Details

Fill in the blanks to create a class named Circle that is a…

Fill in the blanks to create a class named Circle that is a subclass of a class named Shape. public _____ _____ _____ _____ { // Guts go here! }

Read Details

Posts pagination

Newer posts 1 … 104 105 106 107 108 … 69,404 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top