Home » Java (page 10)

Java

AWS Messaging Services: Choosing the Right Service

java-interview-questions-answers

1. AWS Messaging Services AWS Messaging services enable similar and different software systems in the cloud to communicate and exchange information asynchronously. These Software systems can be incompatible and in different languages, and also could be on different platforms. AWS messaging services are highly available, highly scalable and highly reliable. AWS Supports multiple messaging services for different types of use ...

Read More »

JMetro Version 5.3 Released

Another version of JMetro has just been released. This time version 5.3. With this version a few new styles were added for controls that didn’t have them yet. Also some older styles were tweaked and some bugs were fixed. I’ll also show some of the big companies that are using JMetro. Names like Google, Amazon, etc. Here are the styles ...

Read More »

Better Default NullPointerException Messages Coming to Java?

I have recently been interested in a February 2019 into March 2019 discussion on the OpenJDK core-libs-dev mailing list regarding addressing the lack of a detailed message associated with a NullPointerException that was thrown after being instantiated with its no-arguments constructor. This is an issue I’ve run into frequently when using Java and which has even caused me to change ...

Read More »

Test Execution Order in JUnit 5

The general practices say that automated tests should be able to run independently and with no specific order as well as the result of the test should not depend on the results of previous tests. But there are situations where a specific order of test execution can be justified, especially in integration or end to end tests. By default, in ...

Read More »

A Quick Guide to OAuth 2.0 with Spring Security

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. When building a web application, authentication and authorization is a must. Doing it right, however, is not simple. Computer security is a true specialty. Legions of developers ...

Read More »

How to Find Middle Element of Linked List in Java in Single Pass

Howdo you find the middle element of LinkedList in one pass is a programming question often asked Java and non-Java programmers in telephonic Interview. This question is similar to checking palindrome orcalculating the factorial, where Interviewer sometimes also ask to write code. In order to answer this question candidate must be familiar with LinkedList data structure i.e. In the case ...

Read More »

Jakarta EE 8 Status

java-interview-questions-answers

Those of you following Jakarta EE probably know that the upcoming Jakarta EE 8 release will be functionally equivalent to Java EE 8. The reason for this is that we want to prove that the transfer from Oracle is complete and that we are able to produce the processes, specifications, test suites and a compatible implementation through the Eclipse Foundation. ...

Read More »

Java Convert a List to Array And Vice-Versa

Introduction: In this article, we’ll quickly learn how to convert a Java List (say an ArrayList) to an array and vice-versa. If you wish to learn more about an ArrayList in general, feel free to read our article on Java ArrayLists. Meanwhile, let’s get going! Convert Java List to Array: Converting a Java List to an array is very simple and straight-forward. We can use one of the two available flavors of ...

Read More »