1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mixer [17]
3 years ago
14

What's a checked exception?

Computers and Technology
2 answers:
olga55 [171]3 years ago
8 0

Answer:

The answer is option A "One that the Java class library already checks for, so our programs don't have to worry about checked exceptions"

Explanation:

A checked exception is a sort of special case that should be either gotten or proclaimed in the method in which it is declared.

In the Java class chain of importance, a special case is a checked exception in the event that it acquires from java.lang.Throwable, however not from java.lang.RuntimeException or java.lang.Error. All the application or business rationale exceptions should be checked special cases.

It is conceivable that a strategy proclaims that it can toss a special case, however it doesn't. In any case, the guest needs to manage it. The checked exception announcement has a domino impact. Any strategies that will utilize the past strategy will likewise need to deal with the checked exception, etc.

So the compiler for the Java programming language checks, at gather time, that a program contains overseers for all application exceptions, by examining every method body. In the event that, by executing the method body, an exception can be tossed to the guest, that special case should be announced. How does the compiler know whether a method body can toss an exception? That is simple. Inside the method body, there are calls to different strategies; the compiler takes a gander at every one of their strategy signature, what exceptions they proclaimed to declare.

Snezhnost [94]3 years ago
6 0

Answer:

The correct answer is C)

Explanation:

Within Java, a checked exception is one that is checked by the compiler.

When a code within a method generates a checked exception, one of two things must happen:

a) the method should take care of the exception or

b) it should indicate the exception using <em>throws</em> keyword.

Cheers

You might be interested in
Parts of a Computer
Ivan

Answer:

Monitor Sorry If I’m wrong!

Explanation:

7 0
3 years ago
Read 2 more answers
Mary wants to create 3D shapes, refraction, and cloud patterns in an image. Which filter should Mary use?
Lapatulllka [165]

Answer:

D. artistic filter

8 0
4 years ago
Write a C++ program using a do while loop for (Find the highest score). The program should work for any number of students. Run
alexdok [17]

Answer:

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.    int highest = 0;
  6.    int score;  
  7.    do{
  8.        cout<<"Input a score: ";
  9.        cin>>score;
  10.        
  11.        if(score > highest){
  12.            highest = score;
  13.        }    
  14.    }while(score >= 0);
  15.    
  16.    cout<<highest;
  17.    return 0;
  18. }

Explanation:

Firstly, create a variable highest and initialize it with zero (Line 5). Next, create a do while loop (Line 7 - 14). Within the loop prompt user to input a score (Line 8-9) and if the current score is higher than the highest variable, assign the score to highest variable (Line 11 - 13).

After finishing the loop when user put in any negative value, the program shall be able to print out the highest input score (Line 16).

8 0
3 years ago
R7.1 Carry out the following tasks with an array:
Andru [333]

Answer:

Following are the program in the C++ Programming Language.

//set header file or namespace

#include <iostream>

using namespace std;

//define main function

int main() {

//set integer type array with indexing 10

 int a[10];

//set integer type variable to 1

 int i=1;

//set element in 1st index

 a[0]=17;

//set element in last index

 a[9]=29;

//set while loop for the remaining elements

 while(i<9)

 {

//set -1 in the remaining elements

   a[i]=-1;

   i++;

 }

//set for loop to print array

 for ( int j = 0; j < 10; j++ ) {

   cout << a[j]<<endl;

 }

}

<u>Output:</u>

17

-1

-1

-1

-1

-1

-1

-1

-1

29

Explanation:

In the following program, we define the main function "main()" and inside it.

  • Set an integer type array element "a[]" with index value 10.
  • Set integer data type variable "i" initialize to 1.
  • Set elements in the first and last place in the array.
  • Set the while loop to initialize elements for the remaining place.
  • Set the for loop to print the array elements.
6 0
3 years ago
What are the different components of the cloud architecture?
sashaice [31]

Cloud computing architecture can be described as components and subcomponents required for cloud computing. Typically, these components consist of front (fat client, mobile device, thin client) and black end platforms (storage, servers), a cloud based delivery, and a network (Internet, Internet, Cloud). When all of these components are combined, they make up a cloud architecture.

3 0
3 years ago
Other questions:
  • Which dialog box opens after selecting a cell in the list of prepared data, clicking the insert tab on ribbon and the clicking t
    6·1 answer
  • A business wants to centralize its administrative tasks. At the same time, it wants the existing systems to manage and sustain t
    14·2 answers
  • Make a program that prints each line of its input that mentions fred. (It shouldn’t do anything for other lines of input.) Does
    10·1 answer
  • A Unit of information containing the objects position, rotation, and scale values is called:
    13·1 answer
  • From an audio standpoint, how would a city street rate as a possible film location? great because city streets are interesting t
    15·1 answer
  • Interface elements include but are not limited to:
    8·1 answer
  • Es costoso construir un robot
    6·1 answer
  • 7.4 code practice question 1 edhesive
    15·2 answers
  • How to change the microsoft word pages to black background
    8·1 answer
  • See attached. I have code typed out but still having problems.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!