Pull to refresh

How to Use Throw and Throws in Java

Level of difficulty Easy
Reading time 2 min
Views 546

Exception handling in Java is the most effective way to handle runtime errors occurring in the application. This is used to protect the abnormal flow of the execution of the application and continue the application in normal flow. This is the process of handling runtime errors such as ClassNotFoundException, IOException, etc. The throw and throws keywords are used to handle exceptions in Java.
In this topic, we will learn how to use throw and throws keywords in Java with examples.

Read more
Total votes 3: ↑3 and ↓0 +3
Comments 0

List in Java | Interface, Methods, Example

Level of difficulty Easy
Reading time 4 min
Views 370

In this topic, we will learn about what is a List in Java. How to create a List in Java? What are the methods of List in Java? The List is an interface in Java. It is extending the Collection interface in Java. This List interface is present in the java.util package in Java. A list represents a group of individual objects as a single entity where duplicates are allowed and insertion order is preserved.

Read more
Rating 0
Comments 1