Saturday, April 30, 2022

Advantages and Disadvantages of Java Sockets

A socket is an End-Point of 2 sided or two-way communication link between two PCs running on the network. For Example: If there are two people in different places who want to communicate with each other and each of them has a mobile phone. So one of them...

Friday, April 29, 2022

Lazy Java code makes applications elegant and sophisticated

In lazy development, you focus on the “what” and functional libraries handle the “how.”“The functional style of programming is very charming,” says Venkat Subramaniam. “The code begins to read like the problem statement. We can relate to what the code is doing, and we can quickly understand it.”...

Thursday, April 28, 2022

Bruce Eckel on Java interfaces and sealed classes

With the introduction of default and static methods in interfaces, Java lets you write method code in an interface that you might not want to be public.With the introduction of default and static methods in interfaces, Java made it possible to write method code in an interface that...

Wednesday, April 27, 2022

Parallel streams in Java: Benchmarking and performance considerations

The Stream API makes it possible to execute a sequential stream in parallel without rewriting the code.The Stream API brought a new programming paradigm to Java: a declarative way of processing data using streams—expressing what should be done to the values and not how it should be done....

Monday, April 25, 2022

Quiz yourself: Java’s text blocks and variable-length argument lists

When do text blocks contain a leading new line, and when won’t you see a new line?[Java 17, which is a long-term support release, is a significant step forward from Java 11. Although Java 17 became generally available in September 2021, the matching version of the certification exam...

Friday, April 22, 2022

Bruce Eckel on Java records

The amount of boilerplate and errors eliminated by the addition of records to Java is quite significant. Records also make code much more readable.JDK 16 finalized the addition of the record keyword, which defines classes designed to be data transfer objects (also called data carriers). Records automatically generate◉...

Wednesday, April 20, 2022

Java | How to start learning Java

Java is one of the most popular and widely used programming languages and platforms. A platform is an environment that helps to develop and run programs written in any programming language.Java is fast, reliable, and secure. From desktop to web applications, scientific supercomputers to gaming consoles, cell phones...

Monday, April 18, 2022

[Fixed] Java lang exceptionininitializererror com sun tools javac code typetags

A quick guide to fix java lang exceptionininitializererror com sun tools javac code typetags with maven.1. OverviewIn this tutorial, We’ll learn how to fix the error “Java lang exceptionininitializererror com sun tools javac code typetags” when working with maven build.2. Fix 1 – Java lang exceptionininitializererror com sun...

Friday, April 15, 2022

Java 18’s Simple Web Server: A tool for the command line and beyond

Learn how the new minimal server can make your life easier in the context of ad hoc coding, testing, prototyping, and debugging.Java 18’s Simple Web Server is a minimal HTTP static file server that was added in JEP 408 to the jdk.httpserver module. It serves a single directory...

Wednesday, April 13, 2022

5 Best Java Frameworks For Microservices

Microservices are extensively being used to create complex applications with multi-functionality by combining every piece and putting them layer by layer in a single unit. Many of us might not be aware of the fact that Microservices is an approach to crafting a single app in a set...

Monday, April 11, 2022

Top 10 Java Frameworks To Learn in 2022

From basic “Hello World” code to enterprise application-level code, the common thing is the choice of the most suitable language. Java stands in the list with head high as it is robust, platform-independent, and secure. Tech giants such as Google, Netflix, Amazon use Java as one of the...

Pages (26)1234567 »