A Brief Tutorial on Spring Framework

In this article on A Brief Tutorial on Spring Framework, I will explain Spring Framework, its benefits, and a simple example of an application using the Spring Framework. What is Spring? Basically, Spring is not a J2EE Framework. Instead, it is an open-source framework that supports the POJO (Plain Old Java Objects) based programming model. …

Find the Longest Sequence of Negative Numbers and Find its Sum in Java

In this article, I will discuss how to Find the Longest Sequence of Negative Numbers and Find its Sum in Java. The following code example shows the use of a nested loop to find the longest sequence of negative number. The problem is stated as follows: We have an array of integers containing both positive …

A Mini Project on JDBC Operation

In this article on A Mini Project on JDBC Operation, the use of HDBC API in Java is explained through an application. To begin with, create the table Exam. The following list provides the details of the columns in the exam table. user_id: varchar(100) password: varchar(100) user_type: varchar(100) incorrect_attempts: Number(2) lock_status: Number(2) user_name: varchar(100) The …

Understanding Map Collection in Java

This article on Understanding Map Collection in Java describes the java collection interface Map. Also, several examples are also included here. Map is one of the collection interfaces available in java.util package. In order to store key-value pairs, the Map interface is used. Also, the keys that the Map contains are unique. Some of the …

Spring Boot Practice Questions and Their Solutions

The following list provides some Spring Boot Practice Questions and Their Solutions. Application Based Spring Boot Practice Questions and Their Solutions Develop a simple Spring Boot application that displays ‘Welcome to programmingempire.com’. Demonstrate the use of Dependency Injection and auto-wired with Spring Boot. For this purpose, create an application involving the three classes – RegularFaculty, …

Spring Framework Practice Problems and Their Solutions

This article presents a few Spring Framework Practice Problems and Their Solutions. A Brief Tutorial on Spring Framework A Java application has a Model class ‘Art’. Further, this class has three attributes – art_id, art_title, and artist_name. You are required to create a Spring XML configuration file to create a bean entry for the Art …