Home » Java » Page 4

Java

HATEOAS without links

java-interview-questions-answers

Yes, I know this title sounds stupid, but could not find something that fits better. So let me explain why I think that links in HATEOAS APIs are not always that useful. If you don’t know what HATEOAS is, I recommend reading my Introduction to Hypermedia REST APIs first. REST APIs with HATEOAS support provide two main features for decoupling ...

Read More »

Testing using TestContainers

java-interview-questions-answers

Part of our everyday ci/cd tasks involve using containers in order for the tests to take effect.So what if you could control the containers you use through your tests and serve your scenarios better.Also what if you could do this in a more managed way? Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common ...

Read More »

Apache Camel 3.7 – Compiled Simple Language (Part 6)

I have previously blogged about the optimizations we are doing in the Apache Camel core. The first 3 blogs (part1, part2, part3) were a while back leading up to the 3.4 LTS release. We have done more work (part4, part5) and this (part 6) that will be included in the next Camel 3.7 LTS release (to be released this month).  This time we ...

Read More »

Java – Get Time In MilliSeconds

A quick guide to get the current date time in milliseconds using Date, Calendar and java 8 api classes. 1. Overview In this tutorial, We’ll learn how to get the time in milliseconds in java. Time in milliseconds is the right way and format in storing into the database for date time columns. Because this is stored as Number type ...

Read More »

Java Program To Check Palindrome String Using Recursion

A quick guide to check the string is palindrome or not using recursion in java. 1. Overview In this tutorial, We’ll learn how to check the string is palindrome using Recursive function in java. String palindrome means if the string reversed value is equal to the original string. Recursion means calling the one function from the same function. This is ...

Read More »

Converting Between LocalDate and SQL Date In Java 8

A quick guide to convert between LocalDate and java.sql.Date objects in java 8 with examples. 1. Overview In this tutorial, We’ll learn how to convert java.time.LocalDate to java.sql Date in java 8 and vice versa. This is simple to do but when working jpa framework it is bit different to deal with the table column type. First look at the ...

Read More »

Spring MVC REST

spring-interview-questions-answers

Representational state transfer (REST) is an architectural style that describes best practices to expose web services over HTTP, emphasizing performance, scalability, simplicity, modifiability, visibility, portability, and reliability. REST exposes resources through URIs using nouns (not verbs), supporting a limited set of operations (GET, PUT, POST, DELETE). Clients can request particular representations (HTML, XML, JSON, etc) that can link to other ...

Read More »

Spring Boot for war

spring-interview-questions-answers

Spring Boot supports the following embedded servlet containers: Tomcat Jetty Undertow You can use Maven, Gradle, or Ant/Ivy as build tools to generate the jar file. However, you may need to use your own server as WebLogic, Wildfly, JBoss, etc. In that case, you would need to generate a WAR file of your Spring Boot project. To do that you ...

Read More »

Appium vs Selenium – Architecture, Functionality, Applications, and Everything in Between

It’s perhaps difficult to remember life before smartphones. Today, mobile phones have transformed dramatically to become the information and communication hub fundamental to modern life: from paying for your next meal to tracking your sleep habits. This explosion of the mobile industry puts testing professionals under pressure to keep up with speed without sacrificing their mobile apps’ quality. When opting ...

Read More »