TCCI-Tririd Computer Coaching Institute is focused on providing Quality education with practical sessions.Satisfaction of our student is our priority. We pride ourselves for providing proficient IT solutions. We have a highly qualificated and expereinced faculties, who, not only handle teaching, but also aspire to provide the best possible solution through their technical expertise.
Showing posts with label Java coaching class in Ahmedabad. Show all posts
Showing posts with label Java coaching class in Ahmedabad. Show all posts
Wednesday, June 19, 2019
Monday, June 3, 2019
Custom Exception in Java - tccicomputercoaching.com
What is Exception
?
Abnormal coding is called Exception.
We can use Try-Catch Block to handle Exception.
There are two types of Exception handling.
1. Built in Exception
i.e. ArrayoutofboundException , ArithmaticException, FilenotFoundException
2. Custom Exception
Java provides us facility to create our own exceptions which are basically derived classes of Exception.
Here, MyExceptionClass has been extended from derived class of Exception.
Syntax:
Syntax:
To learn more in detail about Exception Handling in Java.
Join TCCI @ Bopal and Satellite in Ahmedabad.
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/
Abnormal coding is called Exception.
We can use Try-Catch Block to handle Exception.
There are two types of Exception handling.
1. Built in Exception
i.e. ArrayoutofboundException , ArithmaticException, FilenotFoundException
2. Custom Exception
Java provides us facility to create our own exceptions which are basically derived classes of Exception.
Here, MyExceptionClass has been extended from derived class of Exception.
Syntax:
| Class <MyExceptionClass> extends Exception
{ //statements } |
Syntax:
| throw new MyExceptionClass(); |
To learn more in detail about Exception Handling in Java.
Join TCCI @ Bopal and Satellite in Ahmedabad.
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/
Subscribe to:
Posts (Atom)
