Question

if method m1 calls method m2 and method m2 throws and exception method m1 must do...

if method m1 calls method m2 and method m2 throws and exception method m1 must do one of what two things

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer)

if method m1 calls method m2 and method m2 throws and exception method m1 must do one of what two things.

method m1 then m1 will handle the exception, as we have not handle it from m2. When a exception happens and if the handler is not present then it send to upper method which will handle the exception.

Add a comment
Know the answer?
Add Answer to:
if method m1 calls method m2 and method m2 throws and exception method m1 must do...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What happens if you invoke a method and it throws a checked exception that it does...

    What happens if you invoke a method and it throws a checked exception that it does not catch?

  • Exception handling All Exceptions that can be thrown must descend from this Java class: The getMessage(...

    Exception handling All Exceptions that can be thrown must descend from this Java class: The getMessage( ) method is inherited from this class? What are the two broad catagories of Exceptions in Java? If an Exception is not a checked exception it must extend what class? What is the difference between a checked Exception and an unchecked Exception? What are the two options a programmer has when writing code that may cause a checked Exception to be thrown? Can a...

  • Two blocks with different masses m1 and m2 and m1 is larger than m2. They are...

    Two blocks with different masses m1 and m2 and m1 is larger than m2. They are attached to either end of a light rope that passes over a light, frictionless pulley suspended from the ceiling. The mass are released from rest, and the more massive one starts to descend. After this block has descended 1.6 m, its speed is 2.2 ms-1. If the total mass is 4.1 kg, what is the mass of the heavier block m1 (unit is kg)?...

  • Problem # 7 m1 m2 9 Three blocks with masses m1 = 4.08kg. m2-207kg. and m,-17.3kg...

    Problem # 7 m1 m2 9 Three blocks with masses m1 = 4.08kg. m2-207kg. and m,-17.3kg are shown n the above diagram What must the value of F be to keep m1 and m2 stationary with respect to m? N Answer the question Submit Attempted the problem 4 times. The answer to the problem is incorrect

  • Question 2 What happens in a method if an exception is thrown in a trylblock and...

    Question 2 What happens in a method if an exception is thrown in a trylblock and there is NO MATCHING catch() block? The method throws the exception to its caller, exactly as if there were no tryt block. This is not legal, so the program will not compile. The program halts immediately. The program ignores the exception. 0 0 L A Moving to another question will save this response,

  • two objects, m1 and m2 are connected by a weightless rope through a weightless and frictionless...

    two objects, m1 and m2 are connected by a weightless rope through a weightless and frictionless pulley as shown. m1=20kg, and θ=47 degrees. the coefficient of friction between m1 and the inclined surface is μ=0.20 What must be the mass of m2 if it is to descend 15 meters in the first 4 seconds after the system is released from rest?

  • Two masses, m1=8 kg and m2 are connected by a cable so that m1 is a...

    Two masses, m1=8 kg and m2 are connected by a cable so that m1 is a height h from the bottom of a cliff. m2 is on a flat plateau above the cliff with a coefficient of friction is 0.5. The friction just allows m1 to keep from falling. What is the mass m2 in kg .

  • Two masses, M1 and M2, are supported by wires of equal length when unstretched. The wire...

    Two masses, M1 and M2, are supported by wires of equal length when unstretched. The wire supporting M1 is an aluminum wire 0.89 mm in diameter, and the one supporting M2 is a steel wire 0.69 mm in diameter. What is the ratio M1/M2 if the two wires stretch by the same amount?

  • Two stars, M1 and M2, have the following properties: M1 is 5 M and is blue,...

    Two stars, M1 and M2, have the following properties: M1 is 5 M and is blue, M2 is 0.5M and is red. 1 5a. Which star is hotter, M1 or M2. Why? 5b. If they are separated by 100 AU, how far away would the center of mass be from M1 and from M2. 5c. The two stars rotate around their common center of mass with a period of 1 year. If we increase the distance to 200AU, what will...

  • Two concave spherical mirrors, M1 and M2, face each other at a separation between their vertices...

    Two concave spherical mirrors, M1 and M2, face each other at a separation between their vertices of 2.000 m. The radius of curvature on M1 is 0.500 m and that of M2 is 2.000 m. A point source of light lies on the line connecting their centers of curvature of the two mirrors and at a distance (3/11) m from M1. Compute the positions of the images by rays that have undergone (a) one reflection at M1, (b) one reflection...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT