13 Spring Boot Actuator Interview Questions Answers for 5 Years Experienced

If you have used Spring Boot, you may know that Spring Boot is all about convenience, and the Spring Boot actuator is one of such features that provides a convenient way to interact with your app using HTTP and JMX. It's also essential from the Spring Boot interview point of view. While I did include some Spring Boot Actuator questions in my earlier post about frequently sked Spring boot interview questions, many of you asked for more questions to cover Spring Boot Actuator in depth, so I decided to write a separate article. In this article, we will see some popular Spring boot Actuator interview questions and, along the way, learn more about this helpful Spring boot Feature

Top 15 Spring Data JPA Interview Questions with Answers

Hello guys, If you are preparing for a Spring developer interview and looking for some Spring Data JPA Interview questions then you have come to the right place. Earlier, I have shared frequently asked interview questions on Spring Boot, Spring Cloud, Microservices, and Spring MVC in general, and in this article, I will share frequently asked Spring Data JPA Interview Questions with Answers for Java developers. Spring is one of the most popular and widely used frameworks. Spring Data JPA is an important part of the framework as it makes working with JPA or any JPA implementation like Hibernate easier.  

Difference between Spring vs SpringBoot Framework in Java

Hello guys, if you have been doing Java development then you would have definitely come across both Spring and Spring Boot framework These two Java frameworks have taken the software development world by storm and have become the go-to tools for building all kinds of applications. But what exactly are Spring and Spring Boot, and how do they differ from one another? This is one of the common questions which many Java programmer ask, particularly those who are starting with software development or new to Java world. In the past, I have shared several Spring and Spring boot articles, courses, books, projects, and interview questions but in this article, I am going to answer what exactly is Spring and Spring Boot and what is the difference between them? This will also help you to decide  when to use Spring Framework or Spring Boot for Java application development. 

How to access configuration values from application.properties file in Spring Boot? Example Tutorial

Hello guys, if you are wondering how to access a value defined in your spring application configuration file then you are not alone, many Java developer face the same challenge. How to access a value defined in the application.properties file in Spring Boot is a common question that arises when you dealing with large software applications. In software applications, you need to have different environments for the QA, production, and local. So as a solution for this, you can use different configurations and update the files separately without affecting other environments by using property files.

Top 18 Spring Cloud Interview Questions for Java Developers [with Answers]

Hello guys, If you are preparing for Java and Spring Boot Interview and looking for some Spring Cloud interview questions then you have come to the right place. Earlier, I have shared 15 Spring Boot Interview questions and today, I am going to share 15 Spring cloud interview questions for Java developers. These questions are good to revise essential Spring cloud concepts before interviews. Today is the world of cloud computing and most of the new Java development is happening on Cloud like AWS, GCP, and Azure. That's why it's very important for Java developers to learn about cloud and frameworks and libraries which support cloud-native development in Java, like Spring Cloud from Spring project.

Top 5 Free Online Courses to learn JavaScript in 2024 - Best of Lot

Hello guys, If you want to learn JavaScript in 2024 by yourself and looking for some free resources like books, sites, and tutorials, then you have come to the right place. Earlier, I have shared the best JavaScript online courses to learn JavaScript in depth and In this article, I am going to share some of the best free JavaScript online courses you can join to learn JavaScript by yourself, on your own schedule, and at your own place. A lot of people are learning JavaScript, and the number is only increasing with each passing day, and why not? It's the #1 web development language. It got tons of useful frameworks and libraries like Angular, React Node.js, and jQuery, which makes web development really easy.

5 Best Free Online Courses to Crack AWS Cloud Practitioner Exam in 2024 - Best of Lot

Hello guys,  if you are preparing for AWS Cloud Practitioner certification and looking for free online courses to boost your preparation, then you have come to the right place. In the past, I have shared free AWS courses and best cloud practitioner courses, and today, I am going to share free cloud practitioner courses to become a certified AWS Cloud practitioner. Cloud computing is a new technology that has the potential to replace personal computers. Through cloud computing, everything can be accessed on the clouds. You can operate a full-fledge server on the cloud, store individual files, install software using virtual computers of the cloud.

Difference between JpaREpository, CrudREpository, and PagingAndSortingRepository

Hello and welcome to my blog post. In this article, we will delve into the world of Spring Data repositories and explore the key differences between three commonly used interfaces: JpaRepository, CrudRepository, and PagingAndSortingRepository. If you're a Spring Boot developer working with databases, understanding the distinctions between these interfaces is crucial for efficient data management. So let's dive right in and uncover the unique features and use cases of each repository interface.

Top 5 Free HTML and CSS Courses for Beginners to Learn in 2024 - Best of Lot

Hello guys, if you want to learn HTML and CSS and looking for free resources then you have come to the right place. HTML and CSS are two pillars of web development, they are used to create web pages you see every day. HTML provides the structure to your web page, and CSS gives them the style to look better. If you want to become a front-end web developer or web designer, then a good knowledge of HTML and CSS is a must. Even though modern-day web development is all about framework and library, like  Angular and React, you still need to know HTML and CSS to understanding what's going on and troubleshoot any issue you face while developing a web application. Btw, JavaScript is another pillar of web development, but we'll not discuss this article. I have already shared some good books and courses to learn JavaScript before

5 Best Free Cloud Computing Courses for Beginners to Join in 2024 [UPDATED]

Hello guys, if you want to learn Cloud computing in 2024 (which is really great!!) and looking for the best free resources like online courses to kick start your Cloud Computing journey, then you have come to the right place. In the last, I have shared free lessons to learn AWS, Google Cloud, and Microsoft Azure, and today, I will share free Cloud Computing courses for beginners. Cloud Computing is an essential skill for the modern developer as most of the new development is happening on Cloud and will happen in the Cloud. If you are not familiar with how the Cloud works and with essential Cloud concepts and terminology like IaaS, PaaS, SaaS, compute, storage, network, etc., you are at risk of being left behind. 

Top 5 Project Based Courses to learn Laravel and PHP for Web Development in 2024 - Best of Lot

Hello guys, if you want to learn Laravel, one of the most popular PHP frameworks for web development, and looking for the best resources like online courses, tutorials, and classes, then you have come to the right place. Earlier, I shared the best PHP courses for beginners, The 2024 PHP RoadMap, Laravel Developer RoadMap, and in this article, I will share the best online courses to learn Laravel for development with PHP. Many believe that PHP has lost its prominence since the emergence of Node.js. But still, It remains one of the most popular languages in the server-side development community. 

Top 10 Free Courses for Java Developers to Learn Online in 2024 - Best of Lot

Hello guys, the Internet is full of useful resources, and no matter what you want to learn, there is something useful available for free. You just need to commit your time and effort. But at the same time, it's challenging to choose from the massive sea of free tutorials and courses on the internet. If you are not careful, you will spend most of your time browsing and changing classes without learning anything. That's where a curated list helps. Curation is my hobby and passion. I love to read books and courses which allows me to curate useful resources and share them with you guys.

Difference between @AutoWired and @Qualifier in Spring Framework?

Hello guys, if you are preparing for Spring Framework or Spring Boot interviews then you should always prepare comparison questions like what is difference between @Qualifier and @AutoWired annotation in Spring? This kind of questions are good to demonstrate not only your knowledge but also how well you understand them and its also your chance to impress the interviewer. In the past, I have answered @Bean vs @Component and @Controller vs @RestController annotation and in this article, I am going to explain you the difference between @Autowired and @Qualifier in Spring Framework. 

What is @Conditional annotation in Spring Framework? Example Tutorial

Hello guys, if you want to know what is @Conditional annotation in Spring Framework and Spring Boot, and how to use it then you have come to the right place. Earlier, I have shared best free courses to learn Spring Framework and Spring Boot, and in this article, you'll learn what they are, how to use them with practical examples. Spring 4.0 introduced the @Conditional annotation that is used for conditional checking for bean registration. This annotation offers more support than the @Profile annotation provided by the spring framework and most of the Spring Boot matching is attributed to this annotation. It allows you to setup features based upon certain conditions like presence of a class in classparth or a JAR File which is how Spring Boot Auto-configuration works.

Difference between @Controller vs @RestController in Spring Framework

Hello and welcome to the blog post. If you are preparing for Java or Spring Boot interview, you may have come across this topic. In this article, we are going to have a look at the difference between @Controller and @RestController annotation. Let's understand with the help of an example.
Spring Framework is a popular open-source application framework that provides infrastructure support for developing Java applications. One of the essential components of Spring Framework is the controller, which is used to handle HTTP requests and provide responses to clients. In Spring, there are two types of controllers: @Controller and @RestController.

How to convert ByteBuffer to String in Java [Example]

You can easily convert ByteBuffer to String in Java if you know how to convert byte array to String. Why? because it's very easy to convert ByteBuffer to a byte array and vice versa. All you need to do is call the ByteBuffer.array() method, it will return you the byte array used by java.nio.ByteBuffer class, later you can easily create String from that byte array. Though always remember to provide correct character encoding while converting byte array to String.

How to Convert Byte array to String in Java with Example

There are multiple ways to convert a byte array to String in Java but the most straightforward way is to use the String constructor which accepts a byte array i.e. new String(byte []) , but the key thing to remember is character encoding. Since bytes are binary data but String is character data, it's very important to know the original character encoding of the text from which byte array has created. If you use a different character encoding, you will not get the original String back. For example, if you have read that byte array from a file which was encoded in "ISO-8859-1" and you have not provided any character encoding while converting byte array to String using new String() constructor then it's not guaranteed that you will get the same text back? Why? because new String() by default uses platform's default encoding (e.g. Linux machine where your JVM is running), which could be different than "ISO-8859-1".

Top 5 Courses to learn MERN Stack in 2024 - (MongoDB, Express.js, React.js, and Node.js) Best of Lot

The popularity of the MERN stack development has grown significantly in recent years. The MERN stack is one of the two popular JavaScript stacks, along with the MEAN stack, and is used to develop single-page dynamic web applications.

MERN stands for MongoDB, Express.js, React.js, and Node.js.
  • MongoDB: A popular NoSQL database. It stores data in JSON format.
  • Express.js: A flexible and minimal web framework for Node.js.
  • React.js: A JavaScript library used to create user interfaces.
  • Node.js: A runtime environment used to execute JavaScript outside the browser.

2 Ways to Print Custom String Value of Java Enum

We all know that how powerful the enumeration type in Java is, and one of the main strengths of enum is that they can implement an interface, they can have an instance variable and you can also override any method inside enum instance. In Java programs, we often need to convert Enum to String type, sometimes just to print values in the log file and other times for storing log into the database.  By default, when you print an enum constant, it prints its literal value e.g. if the name of the enum instance is RED, then it will print RED. This is also the value that is returned by the name() method of java.lang.Enum class. But, there are situations when we want a custom String value for an enum constant. 

How to compare String Objects in Java [Example Tutorial]

The String is a special class in Java, so is String comparison. When I say comparing String variables, it can be either to compare two String objects to check if they are the same, i.e. contains the same characters, or compare them alphabetically to check which comes first or second. In this article, we are going to talk about the right way of comparing String variables, but what is the wrong way? The wrong way is to compare String using the == operator. It is one area in which almost every Java programmer has made mistakes sometimes by comparing two String variables using the == operator. 

10 Things Web Developers Should Learn in 2024 [UPDATED]

Hello guys, if you want to become a web developer (both frontend and full stack developer)  and wondering which skills you should learn then you have come to the right place. In the past, I have shared free web development courses and The Complete Web Developer RoadMap,  which gave you a detailed overview of both frontend and backend skills, and today, I am going to list down the most essential web development skills for programmers and developers. These are the absolute must-have skill for a web developer and not only help you to find a frontend developer job but also help you to become a full-stack developer in the long run. 

How to parse String to Date in Java using JodaTime Example

In this Java tutorial, we will learn how to parse String to Date using Joda-Time library, for example, we will convert date String "04-12-2014" to java.util.Date object which represents this date. Before Java 8 introduced its new Date and Time API,  Joda was only reliable, safe and easy way to deal with date and time intricacies in Java. Java's own Date and Time was not that great, starting from JDK 1.1 when they made java.util.Date a mutable object and when they introduced Calendar in Java 1.2. It is one of the most criticized feature of Java on communities along with checked exception and object cloning

Top 5 Next.js and React.js Framework Courses to learn in 2024 - Best of Lot [UPDATED]

If you are using JavaScript and React or follow web development news then you may know about Next.js, a popular React framework that helps in server-side rendering which improves the user experience of page load ties. Using Server-side rendering also gives you an edge on SEO with a more easily indexable and crawlable website out of the box. Next.js is touted as the next big thing in the web development world and 2024 may be a good time to learn Next.js. If you want to learn Next.js and looking for some excellent resources like books, tutorials, courses, and guides then you have come to the right place. In the past, I have shared the free React courses and books for beginners and In this article, I am going to share some of the best online training courses to learn Next.js from scratch.

Top 6 Free Python Courses for Beginners to Learn Programming in 2024 - Best of Lot

Hello guys, If you are a beginner looking for best Free Python resources to start your programming journey, like books and online courses then you have come to the right place. Earlier, I have shared a couple of free Python Programming books and some of the best courses to learn Python, which were not free. Some of my readers asked me to share some free online courses to learn Python, and it made sense. I personally like starting from free resources, and today, I'll share a couple of excellent Python programming courses, which are absolutely FREE. You can take these online courses to learn Python at your own pace, at your own time, and at your place to learn Python in 2024. This is an excellent advantage of online learning, the flexibility it provides is just impressive. 

How to Accept and Produce JSON as a response in Spring Boot? Example Tutorial

Hello everyone, welcome to the blog post. In this short tutorial, we are going to take an in-depth look at how to consume and produce JSON responses using a widely appreciated Java framework i.e. Spring Boot. As we all know Spring Boot is a framework designed to build a secure web application, microservice, REST API, and production-ready spring application. Modern-day application deals in a large amount of data, which they share in JSON format. A JSON is a standard plain text-based representation of structured data. It is one of the popular formats for data transmission over the internet. Due to its user-friendly syntax and lightweight, it helps in the process faster. 

Top 6 Spring Security Online Training Courses for Java Developers in 2024

Security is one of the most important aspects of a modern web application, be it a Java web application, .NET, or writing using any other web technology. In the Java world, Spring Security rule the security space. It's one of the rare frameworks which provided many security features, like authentication, authorization, session management, remember me, and several other useful features out-of-the-box. Since there was no competition for Spring security and it does its job very well, it soon becomes the de-facto standard for implementing security in both Java web applications, REST APIs, and core Java applications. The rise of the Spring framework certainly helps it to cement its place as well.

How to configure multiple data sources in Spring Boot? Example Tutorial

Spring Boot is a popular framework for building Java applications that simplifies the development process. In some scenarios, you may need to work with multiple databases or data sources in your Spring Boot application. Earlier, we have seen how to change port of spring boot application and in this article will guide you through the process of configuring and using two data sources in Spring Boot. We will explore various approaches and provide practical examples to help you effectively manage multiple data sources in your application.

How to Solve "Error starting Application Context" in Spring Framework?

 Hello guys, Spring Boot is a popular framework for building Java applications, providing a streamlined development experience. However, like any software, Spring Boot applications can encounter errors during startup. One common error that developers may encounter is the "Error starting ApplicationContext" error. This error typically indicates an issue with the application's configuration or dependencies but it's really hard to find what exactly is wrong and how to fix it. In the past, I have shared tips on how to fix error creating bean error and In this article, we will explore various solutions to fix this error and ensure a successful startup of your Spring Boot application.

Top 5 Courses to Learn Quarkus for Java Microservices online in 2024 - Best of Lot

Hello guys, If you are looking for a Spring Boot alternative for Java Microservice development in 2024 and if you're interested in learning more about frameworks like DropWizard, MicroNaut, and Quarkus for creating Microservices in Java, then you've come to the correct spot. In the past, I have shared the best free Microservice courses using Spring Boot, and RxJava, and talked about essential Microservice principles and patterns in this article, I am going to share the best online courses to learn the Quarkus framework in 2024. 

Top 9 Online Courses to Learn Python in 2024 - Best of Lot

Hello guys, if you want to learn Python programming language in 2024 and are looking for the best Python courses, you have come right. There are a lot of resources to learn Python on the web, including free and paid. In the past, I have also shared a lot of accessible sources like free books,  tutorialscourses, specialization, and certifications. Still, many of you asked for more comprehensive and advanced Python courses to master this essential programming skill in 2024. We have selected a few advanced Python online training courses from platforms like UdemyCoursera, edX, ZTM Academy, and Pluralsight to help you learn Python from the best resources. 

Difference between @RequestParam and @PathVariable in Spring MVC

Hello guys, if you are wondering what is difference between @ReqestParam and @PathVaraible annotation in Spring MVC, most likely because it was asked to you on a Java and Spring interview or maybe you are just curious then you have come to the right place. In the past, I have talked about difference between @Component, @Service, @Reposistory and @Controller annotations and in this comprehensive article we are going to take an in-depth look at the difference between the two most frequently used annotations in Spring MVC. It provides two commonly used annotations, namely @RequestParam and @PathVariable, which play a significant role in parameter handling within web applications. 

Top18 Spring Cloud Features for Microservices Architecture in Java

Hello guys, If you are doing Java development using Spring Boot then you may already know that Spring Cloud is a popular open-source framework for implementing microservices in Java. It provides a wide range of features that simplify the development, deployment, and management of Microservices in Java. In this article, we will discuss some of the key features of the Spring Cloud framework that makes it an excellent framework for developing Microservices in Java. Microservices architecture is a modern approach to building complex applications as a collection of loosely coupled, independently deployable services. 

What is Backend for front-end pattern in Microservices? How to use it? Example Tutorial

Hello guys, as Organizations embrace Microservices architecture, the need for efficient communication and collaboration between front-end and back-end teams becomes crucial. To address this, the Backend for Front-End (BFF) pattern has emerged as a valuable approach. BFF pattern allows front-end developers to have dedicated back-end services that cater specifically to their needs, enabling them to build user interfaces more effectively.  In the past, I have shared several Microservices design patterns like  Event Sourcing, SAGA, Database Per Microservices, CQRS, API Gateway, Aggregator Design Pattern,  and also shared best practices to design Microservices and in this article, I am going to talk about the Backend for Front-End pattern entails and how to effectively utilize it in microservices architecture.

How to use Deque Data Structure in Java? Example Tutorial

Hello friends, I am really glad to see you all again here. And I know you are here to learn new and valuable Java concepts and continue your journey on Java. Today we are gonna learn something that is really important logically. yes! you heard right, we are going to learn about Deque data structure in Java and how to use Deque in the Java program. Deque is a special data structure, a double-ended queue that allows you to process elements at both ends, I mean you can add and remove objects from both front and rear end. It's a short form of Double-Ended Queue and pronounced as "Deck".  

How to log messages to File and Console in Java using Log4j? Example Tutorial

Hello guys, if you are wondering how to use a logging library like Log4j or SLF4j in Java then you have come to the right place. In this tutorial, you will learn how to implement logging in your Java program using the Log4j library. Log4j is a Java based open source library from Apache Software Foundation, which is widely used for logging messages in Java applications. In order to use log4j in your application, you first need to download log4j.jar files from https://logging.apache.org/log4j/2.x/download.html site. You can download either the zip version or the tar version depending upon whether you are running your Java program in UNIX or Windows. If you are using Maven then you can also add the following dependency in your pom.xml file and Maven will take care of downloading JAR files. 

Top 10 Online Courses to Learn Data Structure and Algorithms in 2024 - Best of Lot

Hello guys, In the past, I have shared a lot of useful resources like books and tutorials to learn Data Structure and Algorithms for both beginners and experienced programmers. I have also shared a lot of Data Structure and Algorithmic interview questions like this and their solutions in Java. Still, I have got continuously queries about excellent online courses to learn Data Structure and Algorithms in Java. Even though the topics are completely independent with the programming language, Java developer definitely likes the online courses which teach Data Structure and Algorithms in Java, and that's why my recent post about best algorithms courses, which includes algorithms courses from JavaScript and Python didn't impress my readers.

How to read CSV file in Java without using a third-party library? FileReader Example Tutorial

Hello guys, as you learn Java, one thing that comes up early and often is reading from/ writing to files, and doing something useful with that data. This is also one thing which you will keep doing and also forgetting very soon, if you are not then you have good memory as I always forget it and then I do google search to find my own articles. If you read this blog then you know that in the past, I have shared how to load CSV file using OpenCSV library as well how to load a CSV file with header using Jackson but a lot of you asked me how to do this without using any third party library like Jackson or OpenCSV. So, I thought to write about this article and I actually written but forgot to publish it for a long time. But I today I found it and publishing it now, it still works well.