answersLogoWhite

0

In Java, errors that arise during the execution of the program are more formally referred to as Exceptions. Exceptions can be handled using try catch blocks. Here is an example :

try {

int answer = 42 / 0 ;

} catch ( ArithmeticException e ) {

e.printStackTrace();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What are the features of object oriented program?

The features of object oriented programming are Abstraction, Encapsulation, Polymorphism & Inheritance


Why we are specifying C programming as structure oriented program?

Hint. Is not object oriented.


Is c an object oriented programing language?

C language is not a program, and it isn't an object-oriented language either.


Is the high-level language is also an object oriented program?

Not necessarily. Any language with an object-oriented approach will be a high-level language, but a high-level language does not have to use an object-oriented approach.


Is c plus plus is pure object oriented?

No. C is not object-oriented, it is a procedural language.C++, while object-oriented, is not purelyobject-oriented. One of the requirements for a pure object-oriented language is that everything is an object. C++ still has primitive data types (int, long, double, etc.), and so is not purely object-oriented.


What is Objectives Oriented Evaluation Approach to program evaluation?

Objectives Oriented Evaluation Approach is the means by which the worth or merit of a program is assessed based on the extent to which the objectives or purposes of the program are being achieved.


What has the author Stephen Gilbert written?

Stephen Gilbert has written: 'Object-oriented design in Java' -- subject(s): Java (Computer program language), Objektorientierte Programmierung, Java (Programmiersprache), CD-ROM, Systementwurf, Object-oriented programming (Computer science) 'Object-oriented design in Java' -- subject(s): Java (Computer program language), Object-oriented programming (Computer science)


What does object oriented and procedural mean in programming language?

procedure oriented means program will be execte in step by step procedure,when comes to object oriented means every thin can be represents the object a step[ step procedure doesnot follow


difference between object and oriented program?

JAVA is an Object Based Programming Language. it doesn't provide multiple inheritance and operator overloading. while Object Oriented Lanuages provides both.


What has the author Edmund W Faison written?

Edmund W. Faison has written: 'Borland C [plus plus] 4 object-oriented programming' 'Borland C++ 3 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science) 'BorlandC[plus plus] 4.5 object-oriented programming' -- subject(s): Borland C., C., Object-oriented programming (Computer science) 'Borland C++ 3.1 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science)


Explain the Abstraction terms in the context of object oriented programming Also explain how these concepts are implemented in C by giving an example program for each?

g terms in the context of object oriented programming


What is the object oriented interfacing?

When you interact with the program through objects like buttons and text-boxes.

Trending Questions
What is 230 volt 3 phase? What is the working principle of three phase servo motor? DC generator has an efficiency of 94 percent has an output of 240 volts at 100 amperes what would be the pover losses? Does the term resource refer to any system component that is required to perform work? Who is Hugh MacDonald the inventor? How do you compute instantaneous value at given time of three phase alternator? How can you achieve constant air pressure with air compressor? How does form factor affect emf in alternator? Graphite resistor is with a 10 ohm iron resistor at 20 C How large should the resistance be to be temperature independent? Sub spindle programming fanuc oi-tc hwacheon. How do I get the sub spindle to turn on. how do I move it as a tail stock and grab parts? What courses does an interior design school offer? Who created json or java scription notation? A 1000 KHz carrier is simultaneously modulated with 300 HZ and 2 KHZ audio sine waves Determine the frequencies that will be present in the output? Q 1 Name a device that helps to maintain the potential difference across a conductor? What is the sort order for alphanumeric fields that contain both numbers and letters? What happens to voltage in a step-down transformer? How can you crack a jar file? What are the effects of an imbalanced in the eco-system? How do you write a c program to perform students details and information of highest scorer using structure and pointers? Parallel operation of single phase transformer?