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
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }
Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).
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 using 2 D that searches a number and display the number of items 12 inputs values input 15,20, 13, 30, 38, 40,16, 18, 20 ,18 ,20 enter no. to search : 20
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
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
write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n
develop a program to calculate and print body mass index for 200 employees
Code for Easily Using Hash Table?
Write a simple encryption program using string function which apply the substitution method.