What are the components of J2EE application?

A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components: Application clients and applets are client components. Java Servlet and JavaServer PagesTM (JSPTM) technology components are web components. Enterprise JavaBeansTM … Read more

What is the J2EE module?

A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type. Java 2 Platform, Enterprise Edition (J2EE) has been rebranded as Jakarta EE, but the concepts remain the same. In the context of Jakarta EE (or J2EE), a module refers to a self-contained … Read more

What is J2EE?

J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications. J2EE, which stands for Java 2 Platform, Enterprise Edition, is a set of specifications, APIs (Application Programming Interfaces), and technologies developed … Read more

What are available drivers in JDBC?

JDBC is a set of Java API for executing SQL statements. This API consists of a set of classes and interfaces to enable programs to write pure Java Database applications. JDBC technology drivers fit into one of four categories: A JDBC-ODBC bridgeprovides JDBC API access via one or more ODBC drivers. Note that some ODBC native … Read more

Now, what if you have your own custom class like a Dog, Cat, etc instead of a library class like String, Integer, etc?

Here is an example of a JavaTechnology custom object that implements a default sorting logic based on the rank (i.e popularity). public class JavaTechnology implements Comparable<JavaTechnology>{   private String name; private int rank;   // popularity lower value means more popular   public JavaTechnology(String name, int rank){ this.name = name; this.rank = rank; }   //default … Read more