Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
I agree to the Terms and Privacy Policy

New JMetro JavaFX 11 Compatible Version

Hi again! This time a new version that is, as promised, JavaFX 11 compatible. Keep on reading for details. JMetro 8.5.7 and 11.5.7 versions JMetro code has been divided into 2 branches. The master branch holds the Java 8 compatible JMetro version and “11” branch has the Java 11 compatible version. Versions starting with “11.” will be for Java 11 ...

Read More »

How to Use Lombok to remove boilerplate setters getters in Java

Hello Friends, One of the points which is said time and again against Java is that ,we have to write a lot of boilerplatecode in the form of setters and getters for our simple POJO classes which unnecessarily increases thelength of our code. To tackle this problem,there is an open source project called Project Lombok which solves this problemby allowing ...

Read More »

Web socket Java client for Stomp-Spring server side

java-interview-questions-answers

Problem : As an analysis for an issue I had to write a simple java web socket client site code connecting to a Spring based application on the server side with a stomp based web socket broker . Solution : pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.rnd</groupId> <artifactId>SockWebsocketClient</artifactId> <version>1.0-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.RELEASE</version> </parent> <dependencies> <dependency> ...

Read More »

Seven Testing Sins and How To Avoid Them

Throughout this article I will be using Java within code snippets, whilst also using JUnit and Mockito. This article aims to provide examples of test code which can be: hard to readdifficult to maintain Following these examples the article will attempt to offer alternatives, which can be used to enhance the readability of your tests, which in turn will help ...

Read More »

The dark side of Git

Git is Great! As a distributed source code tool, git is great. I love that when I’m on an airplane I can commit code without a wireless connection and have be able to unwind what I was doing. It was clearly designed with the “offline” model in mind. The idea I can create a quick branch, experiment, make massive sweeping ...

Read More »

The 8 Primitive Types in Java

As I begin to edit my Java Basics series from a couple years ago, I thought it would make sense to start pulling some really detailed information out into their own posts. That way, the beginner content is much easier to digest. To start, I’m pulling out all the information I have on the 8 primitive types in Java. Java ...

Read More »

Crossing The JUnit Streams

One of the nice things about JUnit 5 migration is that you can run your JUnit 4 tests in vintage mode and everything’s still compatible. One of the down sides is that some of the annotations and methods have the same name in JUnit 4 and JUnit 5 and it’s very easy, when both sets of the library dependencies are ...

Read More »

Websockets with Jmeter: Getting Performance Numbers

Problem: I can across a problem recently where it was needed to test performance of SockJs/Stomp Spring websocket broker for multiple users . As WebSockets are asynchronous in nature its trickier then normal http/https request-response testing . Solution: Well it doesn’t need to explain why Jmeter is a good tool for perform this kind of testing , but needed a ...

Read More »

Most Important Benefits of Agile Software Development

It’s no secret that agile is the methodology that software development has already moved into in a big way. The idea of agile has become so popular that it is creeping into every industry and has become a popular term to use in conference rooms and virtual meetings around the world. Agile Software Development is Everywhere What is it about ...

Read More »