Which is not a component of a try block

Assignment Help JAVA Programming
Reference no: EM131188644

Question 1.
The Java compiler does not require that you catch or specify __________ exceptions.
checked
runtime
return
optional

Question 2.
In order to use a variable both with a try or catch block and afterward, you must declare the variable before the __________ block begins.
catch
try
main
finally

Question 3.
Many developers believe that it is poor style for a method to throw more than __________ type(s) of exceptions.
one
two
three or four
eight or ten

Question 4.
Because the backslash character starts the escape sequence in Java, you must use two __________ in a string that describes a Path in the DOS operating system.
dashes
quotes
backslashes
periods

Question 5.
You can use the __________ modifier with methods when you don't want the method to be overridden.
override
access
final
end

Question 6.
A(n) __________ is a holding place for bytes that are waiting to be read or written.
ByteChannel
FileChannel
InputStream
ByteBuffer

Question 7.
Placing a file in the __________ directory of your storage device is equivalent to tossing a loose document into a drawer.
root
path
back
loose

Question 8.
The String class __________ method accepts an argument that identifies the field delimiter and returns an array of Strings.
tokens()
divide()
tokenize()
split()

Question 9.
If a programming language does not support __________, the language is not considered object-oriented.
syntax
applets
loops
polymorphism

Question 10.
A(n) __________ is not an object, but it points to a memory address.
abstract class
reference
extend
interface

Question 11.
The methods in a subclass can use all of the data fields and methods that belong to its parent, with one exception: __________ members of the parent class are not accessible within a child class's methods.
private
public
final
protected

Question 12.
Which of the following is NOT a component of a try block?
A closing curly brace
The keyword try
Executable statements
A throw statement

Question 13.
__________ compress the data they store, which reduces the size of archived class files.
Dynamic method bindings
JAR files
Type-import-on-demand declarations
Interfaces

Question 14.
In the case where a method might throw more than one exception type, you specify a list of potential exceptions in the method header by separating them with __________.
spaces
semicolons
commas
periods

Question 15.
When you create a class by making it inherit from another class, you are provided with data fields and __________ automatically.
fonts
methods
class names
arrays

Question 16.
The BufferedWriter class contains a __________ method that uses the current platform's line separator.
lineSeparator()
systemSeparator()
newLine()
newSeparator()

Question 17.
When a class both extends and implements, by convention the __________ clause is last in the class header.
extends
new
implements
if

Question 18.
Using the keyword __________provides you with an intermediate level of security between public and private access.
protected
this
super
secure

Question 19.
The true benefit of using a(n) __________ file is the ability to retrieve a specific record from a file directly, without reading through other records to locate the desired one.
random access
text
open
input

Question 20.
Assertions are meant to be helpful in the __________ stage of a program.
development
testing
production
modeling

Reference no: EM131188644

Questions Cloud

Proactive role in national advantage in certain industries : Should each country's government play a proactive role in national advantage in certain industries? Why or why not? Provide suggestions, and implications for managers new developments in world trading system.
Force dividends to grow at long-run growth rate in earnings : In 2013, Keenan Company paid dividends totaling $3,600,000 on net income of $10.8million. Note that 2013 was a normal year and that for the past 10 years earnings have grown at constant rate of 10% However, in 2014 earnings are expected to jump to $1..
Describe how the operating structure of organized crime : Describe how the operating structure of organized crime may include the use of youth gangs. Describe the methods used by organized crime groups to profit from the inclusion of youth gang members.
What is the change in mechanical energy : how high does the puck rise, neglecting friction? (b) If instead it only rises to a height of 5.00 m because of friction, what is the change in mechanical energy?
Which is not a component of a try block : Which of the following is NOT a component of a try block? In the case where a method might throw more than one exception type, you specify a list of potential exceptions in the method header by separating them with ______.
Identify an organization that uses blending : Identify an Organization that Uses Blending and/or Braiding of Funds Develop a list containing 3-5 examples of early care and education programs in your state or community that might use blending or braiding of funds.
Experienced audiologist in order to add new service line : Three eye-ear-nose-and-throat physicians decide to hire an experienced audiologist in order to add a new service line to their practice. They ask the practice manager to prepare a three-level volume forecast as a first step in their decision-making.
Organization production function : How your organization's production function is related to its marginal product of labor.1st Bullet How your organization's marginal product of labor is related to the value of its marginal product.2nd Bullet How your organization's marginal product i..
Did they observe anyone in the company of the child : Did they witness anyone acting suspiciously? Did they observe anyone in the company of the child? Can they describe or identify the subject? Do they know the name or location of the subject?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

  The class date was designed and implemented

In Programming Exercise 2, the class Date was designed and implemented to keep track of a date, but it has very limited operations. Redefine the class date so that, it addition to the operations already defined, it can perform the following operation..

  Constructor that accepts a file name as its argument

Write a class with a constructor that accepts a file name as its argument. Assume the file contains a series of numbers, each written on a separate line. The class should read the contents of the file into an array, and then displays the following..

  Create a class named date that stores date values

Create a class named Date that stores date values

  Part a -code comprehensionusing the uncommented sample code

part a -code comprehensionusing the uncommented sample code has been provided in moodleanswer the following questions1.

  Do you think that overall performance of app is use program

Do you think that overall performance of an app is one of the main reasons people wouldn't use the program? If you were designing an app what might be some of the things which could cause performance to increase?

  Values that occur just once

This list has some values that occur just once (1, 3, 4, 11, 13, 18), some values that occur twice (9, 16), some values that occur three times (14, 19) and a single value that occurs four times (7). Therefore, the call of list.maxCount() should re..

  Achieve these two important features

Java TM is a portable language, and being an object-oriented programming language, it also encourages component reusability. How does Java TM achieve these two important features

  Class should have a method that returns the average

Write a class named TestScores. The class constructor should accept an array of test scores as its arguments. The class should have a method that returns the average of the test scores.

  Create a java class called watertank

Create a Java class called WaterTank.java. This program will simulate thedraining of a cylindrical water catchment tank. Your program will need to show how the rate at which water would exit the tank, assuming an output nozzle two inches (2") in d..

  Will the direction and magnitude be integers or doubles

Define a Physics_vector class which consists of a struct containing the direction and magnitude, and also define a function

  Lydia runs a small nail salon in the town of new hope

1. Lydia runs a small nail salon in the town of New Hope. She is debating whether she should extend her hours of operation. Lydia figures that her sales revenue will depend on the number of hours the nail salon is open as shown in the table above. Sh..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd