Checked and Unchecked Exceptions in Java

There are two types of exceptions in Java i.e. checked and unchecked exceptions. Below I have explained about these two exceptions with examples. Checked and Unchecked Exceptions in Java Checked Exceptions Those exceptions that are checked at compilation time are called checked exceptions. Checked exception includes the classes that extend Throwable class except RuntimeException and […]

Checked and Unchecked Exceptions in Java Read More »

How to Connect Java (JDBC) with MySQL or Oracle Database

In this tutorial you will learn how to connect java (jdbc) with mysql or oracle database. Java JDBC is an API used to connect with database and perform all database related operations.   There are few steps for connecting java with any database. 1. Register Driver Class 2. Create Connection 3. Execute Queries 4. Close Connection  

How to Connect Java (JDBC) with MySQL or Oracle Database Read More »

Solve javac is not recognized as an internal or external command Error

The error javac is not recognized as an internal or external command arises when we try to compile any java source file using javac command. The reason for this error is because the path of javac command is not set properly. This error can be solved easily by setting javac compiler path in environment variables.

Solve javac is not recognized as an internal or external command Error Read More »