Home » Java » Page 29

Java

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 »

Migrating to Jakarta EE 9

java-interview-questions-answers

Jakarta EE 9 is out, and with it the namespace change from javax.* to jakarta.*. When we talk about the namespace change, we mostly talk about changing the import statements in your code when migrating to Jakarta EE 9. But there is more to it. I have created a slightly more advanced “Hello, World” application in order to highlight a ...

Read More »

AWS SDK 2 for Java and storing a Json in DynamoDB

java-interview-questions-answers

AWS DynamoDB is described as a NoSQL key-value and a document database. In my work I mostly use the key-value behavior of the database but rarely use the document database features, however  the document database part is growing on me and this post highlights some ways of using the document database feature of DynamoDB along with introducing a small utility ...

Read More »