Question

JAVA What is the technical definition of a crash? (Remember, only normal people call it a...

JAVA What is the technical definition of a crash? (Remember, only normal people call it a crash. Now that you are programmers, you know to call it something else and why.)

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

Crash happens, when program stops unexpectedly. i.e. When some instruction fails to execute and cause the program to stop working or behave in some different way like it hangs.

In programming language, this is called Exception.

An exception happens when program execution disrupts from its normal flow and executes unexpected behavior. We need to handle these exceptions using Exception handling technique.

For eg. If program tries to divide a number by 0, it crashes, we need to catch that exception and prevent program from crashing.

eg.

try {

int b = 0;

int c = 10;

int a = c/b;

} catch (ArithmeticException e) {

System.out.println("Divide by zero exception occured");

}

Add a comment
Know the answer?
Add Answer to:
JAVA What is the technical definition of a crash? (Remember, only normal people call it a...
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
  • Using the current system, the mean wait time for people who call for technical support is...

    Using the current system, the mean wait time for people who call for technical support is 5 minutes. A new system was designed to reduce the mean wait time. A random sample of 400 calls produced a sample average of 4.650. The standard deviation of wait times is known to be 4. We want to know whether the new software changed the mean. 1. What is the null hypothesis and what is the alternative hypothesis? 2. What is the value...

  • Remember to use step into when tracing a procure's call Convention el proc program mple1 Problem ...

    Write full code in microsoft virtual studio ASM only Remember to use step into when tracing a procure's call Convention el proc program mple1 Problem 2: Write and run the following program. Will the program crash? Why? push 6 push 5 call addtwo add esp,4 comment this line and see what happen ret example1 endp C Calling Convention main proc call example1 add al, 1 invoke ExitProcess, e main endp addtwo proc push ebp mov ebp,esp mov eax, [ebp+12] add...

  • What is Kant's definition of Enlightenment? According to Kant, why is it difficult for most people...

    What is Kant's definition of Enlightenment? According to Kant, why is it difficult for most people to achieve? Do you agree with Kant? Do all people have a moral duty to think for themselves? Why or why not? Please give reasons to support your position.

  • "Mrs. Wilkins," Dr. Blake said, "I want to ask you to participate in what we call...

    "Mrs. Wilkins," Dr. Blake said, "I want to ask you to participate in what we call a Phase 1 trial of a new drug called Novamed. The aim of such a trial, it is my duty to tell you, isn't to treat your disease but to help us determine how toxic Novamed is. What we learn may help us figure out how to help other people." "You mean Novamed won't help me"? Mrs. Wilkins asked. "I can't say that it...

  • D Should economics be highly technical and accessible only to "experts?" 2) What are three examples...

    D Should economics be highly technical and accessible only to "experts?" 2) What are three examples of untnie ideas that "neoclassical economies" tries to prove? b) c) 3) Is economics a "neutral, technical diseipline" like, for example, math or chemistry? 4) What is the name of the particular economic system we live under? 5) What is one of the reasons that most U.S. economists defend capitalism as the best system? 6) Why should "ordinary people" learn more about e involved?...

  • We often conform to social norms without even realizing it. Can you remember a time when...

    We often conform to social norms without even realizing it. Can you remember a time when you, someone else you know, or an individual in history who broke a social norm? For example: Getting in a crowded elevator and turning to face everyone instead of staring at the door or instead of holding the door open for a person behind you, purposely shut the door, etc.   Write a brief essay in which you explain what a social norm is. Then...

  • In this discussion post, you will propose a task or topic for your Technical Instructions and...

    In this discussion post, you will propose a task or topic for your Technical Instructions and discuss why you want to focus on that specific task. Please answer the following questions: Brainstorm two potential tasks that you could focus on for your Technical Instructions. (This will allow your classmates and I some options when we give you feedback.) For each task, answer the following questions 1.Why are you interested in drafting instructions for this task? How does it fulfill the...

  • Theorem 22.1. Suppose that n people (n 2 2) are at a party. Then there exist at least two people ...

    please solve 22.1, using the Theorem given. Thank you. Theorem 22.1. Suppose that n people (n 2 2) are at a party. Then there exist at least two people at the party who know the same number of people present First you need to know the rules. We will assume that no one knows him- or herself. We will also assume that if x claims to know y, then y also knows x. The idea behind the proof is this,...

  • Java programming only Create a Java program that inputs a grade from the user. The grade input from the user will be an...

    Java programming only Create a Java program that inputs a grade from the user. The grade input from the user will be an integer. Once the input is stored, use an if-else-if block of code to determine the letter grade of the inputted integer grade. Do not use a bunch of if statements by themselves to solve this problem. You will print an error message for inputs greater than 100 and for inputs less than 0. Both errors must be...

  • There is no Dana, only Zeul (Who you gonna call). In November of 2005 the Harris...

    There is no Dana, only Zeul (Who you gonna call). In November of 2005 the Harris Poll asked 889 (a) In constructing confidence intervals, would we use z ort in this situation? Briefly explain why (b) Estimate p the true proportion of US adults that believe in ghosts, with 90% confidence. Interpret (c) Suppose, using the information from the survey (the 29% that believe in ghosts) that a new survey randomly selected US adults, "Do you believe in ghosts?" 29%...

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
ADVERTISEMENT