Registering a Servlet in Deployment Descriptor
Java

Registering a Servlet in Deployment Descriptor

This article explains Registering a Servlet in Deployment Descriptor. Basically, registering a servlet in the deployment descriptor requires providing the <servlet> tag in the web.xml file. Also, within this tag, the <servlet-name>, and <servlet-class> tags specify the name of servlet and associated java class respectively. Additionally, we can also specify <init-parameter> tags to provide the […]

Creating Deployment Descriptor in a Dynamic Web Project
Java

Creating Deployment Descriptor in a Dynamic Web Project

This article explains Creating Deployment Descriptor in a Dynamic Web Project in Eclipse JEE. Basically, a deployment descriptor is called web.xml and contains configuration information regarding a dynamic web application. However, when we create a dynamic web project in Eclipse IDE, the web.xml file is not available by default. Therefore, we need to create this […]

Interfaces in Java
Java

Interfaces in Java

Interfaces in Java provide us a way to declare the functionality that can be implemented by different classes in their own way. In general, an interface represents a contract. Basically, it is a contract between different groups of people in the software industry where the groups want to agree on how the software should behave. […]

Creating Arrays in Java
Java

Creating Arrays in Java

In this article, I will explain Creating Arrays in Java. To begin with, let us first understand what an array is. Basically, an array represents a collection of elements. So, an array can contain multiple values of the same data type. Additionally, all elements in an array occupy the contiguous locations in memory. Further, all […]