In Java, we can use java.util.Scanner to get user input from console. 1. Scanner 1.1 Read a line. UserInputExample1.java package c….
Category: Articles
How do Java 8 default methods hеlp with lambdas?
It is claimed in this article that: one of the major reasons for introducing default methods in interfaces is to enhance the Collections API in Java 8 to support lambda expressions.I could
Java streams and state
With Java 8 streams, it seems Functional Programming has won. Long live statelessness and recursion! Reality is a bit more nuanced: as always in software programming, it depends. I believe that the more tools in your toolbelt, the better it is. When all you have is a hammer, everything looks like a nail. In Functional Programming, every function needs to be pure: output only depends on input, and there are no side-effects. For this reason, Java methods to create infinite streams are not u
An Introduction to Hazelcast | Baeldung
An intro guide to using Hazelcast in Java – and a look at the cluster, client and distributed map.
Compare LocalDate instances – Java 8 Date Comparison Example
Learn to compare two LocalDate instances to find out which date represents an older date. LocalDate class is part of java.time package added in Java 8.
Java Collections – Collections in Java – HowToDoInJava
Java Collections framework is consist of the interfaces and classes which helps in working with different types of collections such as lists, sets, maps, stacks and queues etc.
Top 20 Spring MVC Interview Questions and Answers
The Spring MVC framework is one of the most popular Java frameworks for developing web applications. If you have been working in Java and t…
Payara for Beginners – Adding Payara Server to IntelliJ IDEA
Follow the steps in this blog to setup the Payara Server in IntelliJ for running your web apps.
Applying Concurrency Cookbook Recipes to SPEC JBB
Monica Beckwith talks about how she followed the recipes appearing in Doug Lea’s cookbook and applied them to SPEC JBB, and report her findings. Key takeaways: an introduction to relaxed memory consistency as implemented in Java, a presentation of their performance analysis methodology, and a detailed report on the performance implications of memory barriers.
HTTP/2 in Payara Platform 5
Payara Platform 5 brought with it an implementation of Servlet 4.0, which itself contains support for HTTP/2. HTTP/2 support in Java has been fairly obscure for JDK 8 users, causing issues for many. All Payara Server 5 versions before 5.183 have both HTTP/2 and HTTP/2 server push enabled by default.
10 Data Structure, Algorithms, and Programming Courses to Crack Any Coding Interview
Many junior developers dream of making it at one of the larger tech companies, but, to be honest with you, getting your first job is never…
How to Remove Duplicates from Unsorted Array in Java? [Solved]
This is one of the common technical interview questions which are asked to entry-level programmers and software engineers. There are also a…