Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M91944731
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Java

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As