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
GarryVolchara [31]
3 years ago
7

Assume that processor refers to an object that provides a void method named process that takes no arguments. As it happens, the

process method may throw one of several exceptions. Write some code that invokes the process method provided by the object associated with processor and arrange matters so that your code causes any exception thrown by process to be ignored. Hint: use the catch (Exception ex) and do nothing under the catch clause.
Computers and Technology
1 answer:
Aloiza [94]3 years ago
5 0

Answer:

Following are the code to the given question:

try//defining a try block

{

processor.process();//defining an object processor that calls process method

}

catch(Exception e)//defining a catch block

{

}

Explanation:

In this question, the 'Try' and 'catch' block is used in which both the keywords are used to represent exceptions managed during runtime due to information or code errors. This try box was its code block which includes errors. A message queue catches the block errors and examines these.

In the try block, a method "process" is used which is create the object processor that calls the method.

You might be interested in
Which keyboard shortcut can you use to copy data from a cell? HURRY UP PLZ RIGHT NOW HURRY.
Romashka-Z-Leto [24]
The keyboard shortcut used to copy data from a cell is A.) Ctrl + c command +C

I hope this helped!! :)
7 0
3 years ago
Read 2 more answers
Write a program that accepts a number as input, and prints just the decimal portion.
Olegator [25]

<u>Answer:</u>

<em>There are 2 ways to do extract the decimal part: </em>

<u>Explanation:</u>

  • <em>First method using number  </em>

<em>int main() { </em>

<em>  double num = 23.345; </em>

<em>  int intpart = (int)num; </em>

<em>  double decpart = num - intpart; </em>

<em>  printf(""Num = %f, intpart = %d, decpart = %f\n"", num, intpart, decpart); </em>

<em>} </em>

  • <em>Second method using string: </em>

<em>#include <stdlib.h> </em>

<em>int main() </em>

<em>{ </em>

<em>    char* inStr = ""123.4567"";          </em>

<em>    char* endptr;                       </em>

<em>    char* loc = strchr(inStr, '.'); </em>

<em>    long mantissa = strtod(loc+1, endptr); </em>

<em>    long whole = strtod(inStr, endptr);  </em>

<em>    printf(""whole: %d \n"", whole);      </em>

<em>    printf(""mantissa: %d"", mantissa);   </em>

<em>} </em>

8 0
3 years ago
Read 2 more answers
How do humans sense movement?
Butoxors [25]

Answer:

The answer to this question is "kinaesthesia".

Explanation:

Kinesthesis means the interpretation of body movements it also known as kinaesthesia. kinaesthesia requires the ability to track changes in the direction and movements of the body without depending on the information from both the five sense organs.

kinaesthesia means sensation, whenever we involved in physical activity such as walking, running, cycling, singing, swimming, etc. this is the reason the movement of humans is called  as kinaesthesia.

3 0
3 years ago
7. The data selected to create a chart must include
dybincka [34]
Answer is: B (column titles and row labels)
3 0
4 years ago
Read 2 more answers
How can I do trace table java for LCM??
Dimas [21]

Answer:

import java.util.*;

import java.io.*;

class Main {

   public static void main(String[] args) {

       int a,b,lcm1;

       System.out.println("Enter two integers: ");

       Scanner s12=new Scanner(System.in);

       a= s12.nextInt();

       b=s12.nextInt();

       // maximum number between n1 and n2 is stored in lcm

       lcm1 = (a > b) ? a : b;

       // Always true

       while(true)

       {

           if( lcm1 % a == 0 && lcm1 % b== 0 )

           {

               System.out.printf("The Least common multiple of %d & %d is %d.", a, b, lcm1);

               break;

           }

           ++lcm1;

       }

   }

}

Explanation:

You can find the LCM of two integers using the program in java written above in answer section.

5 0
3 years ago
Other questions:
  • Trish has bought a new computer that she plans to start working on after a week. Since Trish has not used computers in the past,
    10·1 answer
  • Describe some ways that you personally use information technologies differently than you did just a few years ago
    11·1 answer
  • Once a graph has been created, you would need to start over to make any changes to it?
    5·1 answer
  • An algorithm is a ________. a. simple thinking strategy for making decisions quickly and efficiently. b. testing method involvin
    6·1 answer
  • Network in which every computer is capable of playing the role of the client, server or both at the same time is called *
    6·1 answer
  • 2 4. What is one way to prepare for building a project budget? (1 point)​
    9·1 answer
  • How many votes does a candidate need to become president of the US ?
    12·2 answers
  • Which of the following is a tip for making sure you are messaging safely?
    5·1 answer
  • Why is storage and important part of the computing process? It must be atleast five sentences.
    11·1 answer
  • Is pseudocode obtained from Algorithm or is Algorithm obtained from pseudocode?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!