- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Exception Handling in C++ vs Java
There are key differences in Exception Handling in C++ vs Java
Exception handling in java | Exception handling in C++ |
---|---|
Only throwable objects can be thrown as objects. | All types can be thrown as exception |
In java, finally is a block that is executed after try catch block for cleaning up. | In C++ there is no existence of finally block |
A new keyword throws is used to list exceptions thrown by a function. | Throw keyword is used to list exceptions thrown by a function. |
Both checked and unchecked exceptions are present. | Only unchecked exceptions are present. |
Advertisements
To Continue Learning Please Login
Login with Google