Home » Java (page 5)

Java

Deploy a Spring Boot Application into Tomcat

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Deploying applications is hard. Often you need console access to the server from which you pull the latest code and then manually instantiate into your container. In ...

Read More »

Hibernate Many To Many Tutorial

Introduction: In this tutorial, we’ll learn to define and use a many-to-many entity association using Hibernate @ManyToMany annotation. Context BuildUp: To follow along with this tutorial, let’s say we have two entities – Employee and Qualification: As we know, one employee can multiple qualifications. Also, there can be N number of employees with a specific qualification. It clearly means that the Employee and Qualificationentities share a Many-to-Many relationship. Maven Dependencies: In ...

Read More »

Using Spliterator In Java

Introduction: Iterators in Java are used to traverse elements of a given source. Spliterator in Java is one among the four available Java Iterators – Iterator, Enumeration, ListIterator, and Spliterator. It is an interface available in java.util package. Spliterator was first introduced in Java 8 to support parallel programming. However, we can use it for both sequential and parallel processing ...

Read More »

Top 5 NoSQL Database Programmers Should Learn in 2019

Though it’s not mandatory for a Java or Web developers to learn NoSQL database the world is moving in that direction and both Java and Web developer should be familiar with NoSQL databases. If you are wondering what is NoSQL database means then here is a quick overview. A NoSQL database refers to non SQL, non-relational or not only SQL) ...

Read More »

Is Spring Reactive already obsolete? Inversion of Thread Coupling

spring-interview-questions-answers

Beyond Spring’s Dependency Injectiononly solving 1/5 of the Inversion of Control problem, Spring Reactive bases itself on the event loop. While there are other popular event loop driven solutions (NodeJS, Nginx), the single threaded event loop is a pendulum swing in the other direction from thread-per-request (thread pools). With event loops competing against thread-per-request is there not some pattern that ...

Read More »

How to Create QRCode Using QRGen in Java

In one of my previous articles, we saw how to create QRCode and its SVG equivalent using Zxing Java library. The Zxing library is no longer actively maintained and for this, there is a wrapper around Zxing library called QRGen, which provides much higher level APIs and a builder syntax for generating QR Codes. In this article, we will see ...

Read More »

OpenJDK on GitHub

Project Skara was created “to … investigate alternative SCM and code review options for the JDK source code, including options based upon Git rather than Mercurial, and including options hosted by third parties.” The OpenJDK skara-dev mailing list included a post from Robin Westberg last week that announced, “We have added some additional read-only mirrors of a few different OpenJDK ...

Read More »

Load Testing Web Apps Using Apache JMeter

Apache JMeter is an excellent tool for simulating user load on a web application in order to test performance. You can easily build a test plan by specifying the number of users and the interval between requests, and JMeter will then spawn a thread per user and hit your webapp. At the end of the test, you will get a ...

Read More »

Integrating Amazon Cognito With Single Page Application (Vue.js)

java-interview-questions-answers

In this article, we will look at authenticating Single page application (built using Vue.js) with Amazon Cognito using OAuth protocol. In our previous article we integrated a server side application with Amazon Cognito. Scaffolding a Single Page Application We will use vue-cli to create an empty Vuejs application. Vue CLI can be installed by following the instructions here. Let’s create ...

Read More »