Home » Java (page 2)

Java

API Testing and Automation 101: The Essential Guide

java-interview-questions-answers

API stands for Application Programming Interface. Typically API is used to facilitate the interaction between two different applications by using any means of communication. When APIs are used over web networks, we term them as ‘Web Services’. In recent times APIs have become the backbone of programming. As in an application, writing APIs to communicate with database, or with another module has become ...

Read More »

How to Pass Parameters to ActionListener in ADF

java-interview-questions-answers

In some cases, it is required to pass a value to ActionListener of ADF Button. The method that can be invoked by actionListeners has only one parameter of type ActionEvent. So I will explain how to pass parameter to that bean method however it contains only one paramater ActionEvent in method signature. I added button to my page as below The ...

Read More »

Comparing Java REST Documentation Frameworks

java-interview-questions-answers

Deciding which Java framework to choose when documenting your REST APIs can be quite the hassle. In this blogpost we will briefly compare the three documentation frameworks for REST web services that we ourselves use, and how they integrate with the Spring framework (which is the Java framework most often used at Foreach). These are RESTful API Modeling Language (RAML), ...

Read More »

Create a Secure Spring REST API

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. “If it is useful, it will be modified.” Those words of wisdom came from a QA teacher of mine, to explain that all software evolves when it becomes ...

Read More »

Integrating Applications As Heroku Add-Ons

Heroku is a popular Platform-as-a-Service provider and it offers vendors the option to be provided as add-ons. Add-ons can be used by Heroku customers in different ways, but a typical scenario would be “Start a database”, “Start an MQ”, or “Start a logging solution”. After you add the add-on to your account, you can connect to the chosen database, MQ, ...

Read More »

Java EE with NetBeans 10

The Apache NetBeans project is really shaping up. Version 10.0 was released on the 27th of December 2018. The main features added since version 9.0 are listed on the download page. For me personally, the most important feature is the JDK 11 Support. So, what about Java EE then? Until all the NetBeans sources have been transferred from Oracle to ...

Read More »

Spring Boot Hibernate Tips

spring-interview-questions-answers

1. Overview Hibernate needs no introduction. It is the most popular ORM out there for Java. Similarly, Spring Boot is the most powerful, and easy to use framework out there for Java. This tutorial isn’t about Hibernate or Spring Boot, there are tons of them out there. We’ll look into some common errors that you may run into when using ...

Read More »

Unit testing DynamoDB applications using JUnit5

In a previous post I had described the new AWS SDK for Java 2 which provides non-blocking IO support for Java clients calling different AWS services. In this post I will go over an approach that I have followed to unit test the AWS DynamoDB calls. There are a few ways to spin up a local version of DynamoDB – 1. ...

Read More »