Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 22 pages
Exam (elaborations)

ITCS 1213 UNCC FINAL EXAM TEST QUESTIONS WITH CORRECT ANSWERS

Document preview thumbnail
Preview 3 out of 22 pages

What is the access of all the methods in a Java interface? -Correct Answer public Can an interface be instantiated? -Correct Answer No Give two reasons for interfaces in the Java language. -Correct Answer To implement a list of methods and organization How many interfaces can another class implement -Correct Answer As many as needed What does it mean to implement a Java interface -Correct Answer Create a class that overrides all the methods If a class extends an Employee class and implements a Comparable interface, what are the is-a relationships established? -Correct Answer The given class is a: is - a relationship

Content preview

ITCS 1213 UNCC FINAL EXAM TEST

What is the access of all the methods in a Java interface? -Correct

Answer ✔ ✔ public


Can an interface be instantiated? -Correct Answer ✔ ✔ No


Give two reasons for interfaces in the Java language. -Correct Answer

✔ ✔ To implement a list of methods and organization


How many interfaces can another class implement -Correct Answer

✔ ✔ As many as needed


What does it mean to implement a Java interface -Correct Answer ✔

✔ Create a class that overrides all the methods


If a class extends an Employee class and implements a Comparable

interface, what are the is-a relationships established? -Correct Answer

✔ ✔ The given class is a: is - a relationship

,How many classes can a given class extend? -Correct Answer ✔ ✔

one


Name five Java pre-written interfaces -Correct Answer ✔ ✔ N/A


What are the two broad categories of Exceptions in Java? -Correct

Answer ✔ ✔ Checked and Unchecked(Run Time)


What is the major difference between a checked exception and an

unchecked exception? -Correct Answer ✔ ✔ Checked: is all those

Exception which requires being catches and handled during compile

time.




Unchecked: is those Exceptions whose handling is not verified during

Compile time.


What are the programmer's two choices when writing code that may

cause a checked-exception to be thrown by the Java virtual machine?

-Correct Answer ✔ ✔ "throws IOException" or a "Try-Catch block"

, What clause( block) in the exception-handling mechanism in Java is

optional? -Correct Answer ✔ ✔ Finally Block is optional


Is it possible to have many catch blocks for one try block? -Correct

Answer ✔ ✔ Yes


What is meant by the error going up through the call stack? -Correct

Answer ✔ ✔ propagation


What is meant by "handling" an error? -Correct Answer ✔ ✔ In

Java errors are handled by an Exception object.


What is the ancestor of all Java exceptions that can be thrown? -

Correct Answer ✔ ✔ Throwable


Can a programmer create his/her own Exception class? -Correct

Answer ✔ ✔ Yes. A programmer can create their own Exception

class in Java.

Document information

Uploaded on
June 23, 2025
Number of pages
22
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
jackline98
3.3
(61)
Sold
272
Followers
152
Items
9895
Last sold
4 weeks ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions