write a proram using exceptional handling create a error &
display the message "THERE IS AN ERROR?... PLEASE RECTIFY"?
Answer Posted / ankit
try
{
int a;
int b=0;
a=10/b;
}catch(Exception e)
{
System.out.println("error");
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
develop a program to calculate and print body mass index for 200 employees
Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?
How to Split Strings with Regex in Managed C++ Applications?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
write a program that can LOCATE and INSERT elements in array using c++ programming languages.
Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)
3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...
How can I Draw an ellipse in 3d space and color it by using graph3d?
Code for Easily Using Hash Table?
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
Write a simple encryption program using string function which apply the substitution method.
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
Code for Method of Handling Factorials of Any Size?
Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37
solve the problem in the programming language C++"if a five digit number is input through the keyboard.Write a program to calculate the sum of its digits(hint: use the modulus operator)