HTML
Disclosure: This article may contain affiliate links. When you purchase, we may earn a commission.

Difference between Hibernate, JPA, MyBatis

Hello guys, if you are wondering what is difference between Hibernate, JPA, and MyBatis in Java world and when to use them then you have come to the right place. Earlier, I have shared Hibernate Courses, books, and Interview Questions and in this article, I will answer this popular Hibernate question from Java developer's perspective.  This article aims to give a brief overview of Hibernate, JPA, and MyBatis. Moving ahead highlights the difference between them. It also put light on which underlying technologies they use. Lastly, it provides verdicts on when to use which one among these. But, before we start with the difference between JPA, Hibernate, and MyBatis. It is important to have an understanding of these technologies first.

How to access a value defined in the 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.

How to test a Spring Boot application in Java? @SpringBootTest Example

Hello guys, if you are wondering how to test your Java + Spring Boot application then you are at the right place. Earlier, I have shared best Spring Boot Courses and Spring Boot + Microservice example and in this article, I will talk about how to test your Spring boot application, mainly about writing unit test and integration test for Java and Spring boot application. Unit testing and Integration testing are two skills which separates a normal developer from a professional Java developer and when it comes to testing Spring applications many Java developer doesn't really know how to do that. If you are new to Java and Spring development but keen to learn Unit testing both Java and Spring Boot application then you have come to the right place.

Difference between @Component, @Controller, @Service, and @Repository in Spring

Hello guys if you are wondering what is the difference between @Component, @Controller@Service, and @Reposistory annotation in Spring Framework then you have come to the right place. In the past, I have shared 15 Spring Boot Interview Questions and 30 Spring MVC questions and in this article, I am going to answer the fundamental and popular Spring questions about @Component, @Controller@Service, and @Repository annotation, but before we go into differences, let's understand the similarity first.

5 Best Python Tutorials For Beginners in 2023

Hello guys, if you want to learn Python programming language in 2023 and looking for best online resources like tutorials, courses, books, projects and websites then you have come to the right place. Earlier, I have shared best Python courses, both free and paid, as well as best Python books, projects, and even Python interview questions for job interviews and today, I Am going to share best Python tutorials for beginners in 2023. We all know that a computer can work without a system or program to tell them what to do, which means you need to learn a language to program it and how it works. There are a lot of languages to learn, but python is one of the high-level and easy to learn and start. This post will help you get the best resource to get started using the python language.

How to use Spliterator in Java 8 - Example Tutorial

Hello friends, we are here today again on the journey of Java. And today, we are gonna learn about SplitIterator class from Stream package that may not be used in your day-to-day life but can be very useful to know as Java internally does use this with both normal streams and parallel streamsAs always, let’s take an example of a situation. I will present you with a situation and you guys can think about it. So, let’s say we have an array with 50k records in it. Now, these all records need to be modified, let’s say they are strings and we need to append the string with a name. Now, traversing the array sequentially would be time-consuming. Any innovative ideas my friends?

10 Examples of Collectors + Stream in Java 8 - groupingBy(), toList(), toMap()

As the name suggests, the Collectors class is used to collect elements of a Stream into Collection. It acts as a bridge between Stream and Collection, and you can use it to convert a Stream into different types of collections like List, Set, Map in Java using Collectors' toList(), toSet(), and toMap() method. Btw, Collector is not just limited to collection stream pipeline results into various collection class, it even provides functionalities to join String, group by, partition by, and several other reduction operators to return a meaningful result. It's often used along with the collect() method of Stream class which accepts Collectors. In this article, you will learn how to effectively use java.util.stream.Collectors in Java by following some hands-on examples.

How to log SQL Statements in Spring Boot Application? Example Tutorial

Hello guys if you are working on a Spring Boot application which loads and save data from database but you are not sure which queries are run on backend and you want to see them then you have come to the right place. Earlier, I have showed you how to set logging level in Spring Boot and In this article we are going to have a look at another very interesting topic from Spring Boot on how to log SQL statements in spring boot app. I know you might be wondering why I’m calling a very boring topic an interesting one? A proper logging is among one of the features that sets intermediate or experienced developers apart from beginners. 

6 React.js Performance Tips Every Web Developer Should Learn

Hello guys, if you are working in a React.js application and looking for best tips to improve performance of your react application then you have come to the right place. Performance is one of the biggest reasons why React.js has gained immense popularity in the last five years. React uses virtual DOM to boost performance. Though React does what it has to do to increase the performance behind the scenes, the developer has to ensure a top-quality user experience. In this article, we will discuss some of the ways which can be used to optimize the performance of a React application.

9 Tips to become a Better Software Developer in 2023

Many of my readers, students, and programmers often asked me how to improve their programming skills, coding skills, or design skills. I know it's not easy to be a professional programmer. Apart from programming and coding, you have to be good at communicating ideas, designing solutions and, more importantly, convincing peers and stakeholders. Ideally, you learn all these qualities at your workplace by working with more experienced and smarter people than yourself, but that's just an ideal scenario. Many programmers don't get lucky enough to work with a fellow programmer who helps them to grasp these skills; often, it's your own hard work.

7 Reasons of NOT using SELECT * in a Production SQL Query? Best Practices

Hello guys, if you are doing a code review and see a SELECT * in production code, would you allow it? Well, its not a simple question as it looks like but let's find out pros and cons about using SELECT * in a production SQL query and then decide. I have read many articles on the internet where people suggest that using SELECT * in SQL queries is a bad practice and you should always avoid that, but they never care to explain why? Some of them will say you should always use an explicit list of columns in your SQL query, which is a good suggestion and one of the SQL best practices I teach to junior programmers, but many of them don't explain the reason behind it. 

Top 5 Programming languages for Backend development

Hello folks, if you are wondering what are the best programming language for backend development then you have come to the right place. Earlier, I have shared the best programming languages for beginners and today, I am going to share best programming language for backend development. My choices are based upon my own experience as well as what I have seen in job markets and other companies. To end the suspense, Java is the best programming language for backend development. It is used by both big and small companies for creating solid and scalable backend which can withstand high volume. I have seen Java used heavily on Investment banks in all kind of projects and most of the server side projects are done using either Java or .NET and C#, the second most popular programming language for backend development.

How to use Stream allMatch() and anyMatch() function in Java? Example Tutorial

Hello friends, we all know how streams are super important for our day-to-day needs in Java programming and coding nowadays. It allows us to filter data in memory in a declarative way, it also allows us to transform objects as well create a complex Stream pipeline to represent our business logic in a declarative fashion. But, do we know all the stream functionalities? Of course not. Earlier, we have seen examples of filter(), map, flatMap, and findFirst() method and today we will learn two of the most important stream functions anyMatch() and allMatch().  So what’s the wait? Let's start!

How to use Stream findFirst and findAny function in Java? Example Tutorial

Hello friends, here we are again on the journey of Java excited and eager to find the next stop of knowledge. But do not worry my friends, continuing the java stream series further, today we will deep dive into two other functions of streams that are equally important and interesting. Let me start by providing a situation that you guys can analyze and then we will discuss it. Let’s say you have data coming into your code through an API call. Now, you have no idea what the stream of data would be but you want the first element present in it. So, stream provides a function for the same. Let’s see what it is and how it is written.

Java 8 Predicate and Lambda Expression Example

Hello guys, if you want to learn about Predicates in Java 8 and looking for examples then you have come to the right place. In the past, I have explained key Java 8 concepts and classes like Stream, Optional, Collectors etc and we have seen how to use those functional methods like map, filter, and flatmap and in this article, I will show you how to use Predicates in Java 8 with Lambda expression. If you don't know Predicate is a functional interface in Java. A functional interface is nothing but a function with one abstract method or annotated by @FunctionalInterface annotation. Predicate is a functional interface with a function which accepts an object and return Boolean. 

3 Examples to Convert Date to LocalDate in Java 8? Tutorial

One of the great features of Java 8 is the new Date and Time API which is intended to fix existing issues related to mutability and thread-safety with existing java.util.Date class. But given java.util.Date is used very heavily across all the Java applications, you will often end up with a situation where you need to convert java.uti.Date to java.time.LocalDate while working in Java 8. Unfortunately there is no toLocalDate() method in the java.util.Date class. Though, you can easily convert Date to LocalDate if you are familiar with how new and old API classes map to each other.

Top 50 Database and SQL Interview Questions Answers for Programmers

Hello guys, whether you are preparing for Java developer interview or any other Software Developer Interview, a DevOps Interview or a IT support interview, you should prepare for SQL and Database related questions. Along with Data Structure, Algorithms, System Design, and Computer Fundamentals, SQL and Database are two of the essential topic for programming or technical Job interview. In the past, I have shared many questions related to MSSQL questions, Oracle Questions, MySQL questions, and PostgreSQL questions and in this article, I am going to share both theory based and query based Database and SQL Interview questions with to the points answers.

Top 21 Web Development Interview Questions with Answers in 2023

Hello guys, if you are preparing for web developer job and looking for popular web development interview questions for preparation then you have come to the right place. Earlier, I have shared HTML Interview Question, CSS Interview Questions, and JavaScript Interview Questions and in this article, I am going to share common web development interview questions. You may be thinking how much different it is from other list but this is a general questions about web development like web services, images, SOAP, REST, Pagination etc.

3 Examples of Anonymous Class to Learn Lambda Expression better in Java 8

Hello guys, you may be thinking why I am talking about Anonymous class now when many Java programmers have already switched to Java 8 and many have already moved on from Anonymous class to Lambda expression in? Well, I am doing it because I am seeing many Java programmers who find it difficult to write and read code using lambda expression in new Java 8 way. It's also my own experience that if you know the problem first, you can better understand the solution (lambda expression). Some of you might remember, the opening scene of MI 2 (Mission Impossible 2), when Nekhorovich says to Dimitri that "Every search for a hero must begin with something that every hero requires, a villain. Therefore, in our search for a hero, Belairiform, we created the monster, Chimera"

Top 27 Spring Security Interview Questions Answers for Java Developers

Hello guys, if you are preparing for Java and Spring Developer interview then you should prepare about Spring Security. Since Security is an important topic and Spring security is the most popular framework to implement security in Java web applications, there is always a few questions based upon Spring Security in Java developer interviews. In the past, I have shared Spring Boot questionsSpring Data JPA Question, Spring Cloud Questions, and Microservices Interview Questions and in this article, I will share 20 popular Spring security questions for practice. I have also shared answers so that you can revise key Spring security concepts quickly but if you think that you need more preparation on certain topic then you can also checkout this list of best Spring Security courses where I have shared online courses to learn Spring security in depth. 

Top 20 Jenkins and CI/CD Interview Questions Answers for Java Developers

Hello guys, if you are preparing for Java developer interview or DevOps Interview, one tool which you should know well is Jenkins, the king of Continuous Integration and Continuous build, and one of the most desirable skill companies look on experienced programmers now a days. Earlier, I have shared best free Jenkins courses for programmers to learn this useful tool as well as Interview questions on DevOps, Docker, and Kubernetes and in this article, I am going to share 20 frequently sked Jenkins and CI/CD Interview questions with answers for both beginners and experienced developers. 

Top 20 Agile and Scrum Interview Questions and Answers for PM, Programmers and Testers

Hello guys, ,if you are preparing for Software Developer interview then it makes to prepare questions on Agile and Scrum methodology. Agile is the standard way to develop software and most of the companies, both big and small follows Agile to develop and deliver Software. Earlier, I have shared free Agile and Scrum online courses to learn these useful technologies for Software development and today, I am going to share 20 Agile and Scrum interview questions with answers. But, before we get to the all-important interview questions that will help you land your dream software job, let me tell you something about Agile and Scrum. 

3 Examples of flatMap() of Stream in Java

Hello guys, if you are doing Java development then you must have come across the flatMap() method on Stream and Optional Class. The flatMap() method is extension of map() function as it does both flattening and mapping (or transformation) instead of just transformation done by map() method. I have explained the difference between map() and flatMap() earlier in detail, but just to revise, let's revisit it. If you have a list of String e.g. {"credit", "debit", "master", "visa"} then you can use the map() method to get a list of integer where each value is length of corresponding String e.g. list.stream().map(s -> s.length()) will produce {6, 5, 6, 4}. This is called transformation because you have transformed an stream of String to a Stream of integer

Top 50 Advanced Java Garbage Collection and Performance Interview Questions and Answers

Hello Java Developers, If you have gone through any Java Developer interview, particularly for a senior developer role then you know that a good knowledge of JVM internals and Garbage collection is important. Even though Java and JVM take care of memory management for you, bad code can still cause memory leaks and performance issues. For example, if you are creating millions of objects in a loop or keeping an un-intended reference of dead objects then you are putting additional strain on the Garbage collector and creating a memory leak in your application. You cannot blame Java and JVM for that and the only way to avoid such errors is to know about how Garbage collection works.

Top 40 Perl Interview Questions and Answers for Programmers

Hello guys, if you have been working as a professional Software developer then you may have heard about Perl, one of the most powerful scripting languages. Perl is really great when it comes to creating reports, write scripts to analyze text, and connect to DB, load data and generate reports. Perl is even more important for IT support professionals, business analysts, and IT professionals who need to work in the field of operations. That's why Perl questions are quite common during Software developer and IT support interview, especially if the Job description mention Perl or you have added Perl as a skill in your resume or LinkedIn Profile.

[Solved] How to check if two String are Anagram in Java? Example

Hello guys, if you are preparing for Coding interviews then you already know that String is one of the most popular topics. You will be bound to get some string-based coding problems on interviews. If not, you have come to the right place becuase we'll look at one of the most popular String programming interview questions today,  how to check if two given strings are Anagram of each other? Two String is said to be an anagram of each other, if they contain exactly the same characters but in a different order. For example "ARMY" and "MARY" are an anagram of each other because they contain the exact same characters 'A', 'R', 'M' and  'Y'.

How to create a String or int Array in Java? Example Tutorial

There are several ways to create an array in Java, for example, you can declare the array without initializing it, or you can create and initialize the array in the same line. If you want to make an array with values, then you need to first decide which type of array you want to create? e.g., do you want a String array, which can contain String objects like "abc," "def," or do you want to create an int array that contains int values like 10, 20, etc. In Java, you can create an array of any type, including primitives like byte, int, long, and objects like String, Integer, and other user-defined objects. Let's some code to make a new array in Java.

10 Examples of an Array in Java

Along with the String, the array is the most used data structure in Java. In fact, String is also backed by a character array in Java and other programming languages. It's very important for a Java programmer to have good knowledge of array and how to do common things with array e.g. initialization, searching, sorting, printing array in a meaningful way, comparing array, converting an array to String or ArrayList, and doing some advanced slicing and dicing operation with an array in Java. Like my previous tutorials 10 examples of HashMap in Java, I'll show you some practical examples of an array in Java. If you think, any important operation is not included, you can suggest their examples and I'll add them to this list.

How to find 2nd, 3rd or kth element from end in linked list in Java? Example [Solved]

Hello guys, today, I am going to discuss one of the important linked list based coding problems from interviews - how to find the Kth element from the end? This question is also asked as to how do you find the 3rd element from the last of a singly linked list in one pass or write a Java program to find the 5th element from the tail of a given linked list in one iteration. In this article, you will learn the programming technique so that you can solve any variant of this problem, I mean the Kth node from the tail problems and some linked list-based challenges. The difficulty in this question is that you need to solve the problem in one iteration or one pass. This means you cannot traverse the linked list again. I mean you cannot go till the end then traverse back to the Kth element.

Difference between array and Hashtable or HashMap in Java

A couple of days back someone asked me about the difference between an array and a hashtable, though this is a generic data structure and programming question, I'll answer it from both a general programming perspective as well on Java perspective where Hashtable is not just a data structure but also a class from Java Collection API. Even though both array and hashtable data structure are intended for fast search i.e. constant time search operation also known as O(1) search, the fundamental difference between them is that array require an index while hash table requires a key which could be another object. 

Top 25 Linked List Interview Questions for Java Programmers

Hello guys, if you are preparing for Software Development interview or want to become a Software Engineer in 2023 then you must pay full attention to two important topics: first is Data Structure and Algorithms, and second is System Design. These two topics are very essential and you will always find questions from these in any coding interview. They are also the most difficult to crack as they are very vast, no matter how much you will prepare there will be certain questions which you don't know but if you have solid knowledge of fundamental data structure like array, linked list, binary tree, hash table, heap, and graphs as well sorting and searching algorithms like quicksort, merge sort, selection sort, insertion sort, binary tree as well advanced String and graph algorithms then you can still do well.

How to use Map.compute(), computeIfPresent() and ComputeIfAbsent in Java? HashMap and ConcurrentHashMap Example

The JDK 8 has added several useful methods in existing interfaces e.g. java.util.Map, java.util.Collection, and java.util.concurrent.ConcurrentMap. Thanks to default methods, the much-needed evolution of existing interfaces becomes possible. Out of many useful methods, one method which stands out to me is the compute() method, which allows you to update a value in ConcurrentHashMap atomically. As per Java documentation, The compute() function tries to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping). The entire function is performed atomically.

What is Blocking Deque in Java? How and When to use BlockingDeque? Example Tutorial

Hello friends, we meet again here today on our journey to Java. Before we continue forward, let me inform you guys that today's topic is in continuation of our Java Deque topic. If any of you guys have not read the Java Deque tutorial, go ahead and read that one first. Though there is no such limitation of this article, it is recommended to have gone through the basics of Deque and our previous post. So, I guess now we will continue our Deque topic and today we will discuss something very interesting. Today we are gonna jump into the advanced topic of Deque and how we can leverage the functionality Java has provided for a better and more robust application building.

How to use LinkedList in Java? Singly LinkedList and Doubly LinkedList Example Tutorial

Hello friends, we meet again on our journey to Java. I hope you guys are enjoying Java and are trying hands-on too. Today we are gonna discuss a very easy topic (yeah, I mean it :p). But, do not get carried away just by "easy", this is the hottest topic asked in various interviews, exams, and development purposes too. So, what's the wait? Let's start!  As usual, let's start with a scenario. Let's say you want a data structure that stores data in a sequential manner, like an array. But, you don't know the size yet while initializing the data structure. Arrays don't support that, they need a size beforehand. So, what should we do? Do not worry, as Java is here to help us again. Let's explore it then!

How to get First and Last Element of LinkedList in Java [Example]

Hello guys, if you are wondering how to get the first and last element from Java LinkedList then you have come to the right place. Earlier, I have shared the best Data structure and algorithms courses and in today's post, I will teach you how to get the first and last element of a linked list in Java. This is one of the common coding problems but we will see it from different angles. In Java, you don't need to write and create your own LinkedList, there is a built-in class called java.util.LinkedIn and you can use that class whenever you need a linked list data structure. 

What is HashSet in Java? How and When to use Set Data Structure? Example Tutorial

Hello guys, we meet again for our journey of learning Java. Today, we are gonna learn something very fruitful and easy. Hope you all are excited and ready. I would recommend you guys to go through the HashMap or TreeMap article which goes over hashing as this topic has some of its features. So, What's the wait? Let's start! Suppose you guys are given the task of storing car names (yes, I love cars :p). Now, how would you store it? If you guys have some questions, here are the requirements. The car names may increase over time. So, logically, an array is not what we are looking for. 

Top 27 Dynamic Programming Interview Questions for Interviews

Hello guys, if you are preparing for tech interview or any Java developer interview then apart from preparing for Data Structure and Algorithms, and System Design, you should also prepare for Dynamic Programming questions. Dynamic programming or DP is a technique to solve a problem by breaking a big program into small sub-problem and then combining the result. It's very similar to Recursion and that's why Recursion also plays an important role in solving Dynamic programming questions.  When it comes to Interview, DP is one of the toughest topic to master.

Top 20 TypeScript Interview Questions and Answers for Web Developers

Hello guys, if you are preparing for Web developer Interview where TypeScript is mentioned as required skill then you should prepare TypeScript well and if you are looking for common TypeScript interview questions then you have come to the right place. Earlier, I have shared common JavaScript Questions, HTML Questions, CSS questions and Web Development questions and in this article, I am going to share 20 TypeScript interview questions with Answers. I have tried to cover as many TypeScript concepts as possible using these questions and provided to-the-point answers for quick revision. If you have worked as TypeScript developer or used TypeScript in past then you can easily answer these questions but if you cannot then you can always join these best TypeScript courses to learn and revise TypeScript concepts quickly. 

Top 51 JavaScript Interview Questions for 1 to 2 Years Experienced Developers

Hello guys, you may know that JavaScript is one of the most popular programming languages, having ranking #1 for a couple of years in the StackOverflow survey. There is no doubt that JavaScript is the most popular language or web development. The best thing is that you can use JavaScript to develop both frontend and backend using the same programming language and tech stack. You have so many popular frameworks like React.js, Angular, Node.js, Vue.js to implement sophisticated web applications for different domains. That's why the demand for JavaScript developers is very high, especially full-stack JavaScript developers who can create front-end and back-end applications independently.

Top 20 AWS Interview Questions Answers for Developers and DevOps Engineers

Hello guys, if you are preparing for Cloud engineer interview or preparing for a developer role where AWS cloud skills are required and need AWS questions to kick start your preparation then you have come to the right place. Earlier, I have shared 20 Cloud Computing Interview Questions with answers and in today's article, I am going to share 20 common AWS questions with answers from interviews. These questions are suitable for 1 to 3 years experienced AWS professionals as it touches fundamental AWS concepts and services. If you have worked on AWS platform then most likely you can answer all of these questions but if you struggle then you can always go back and join one of these best AWS cloud courses to learn and revise key AWS concepts before interviews. 

How to Prepare for AWS certified Security Specialty Exam in 2023

Hello guys, if you are preparing for AWS Certified Security Specialty exam in 2023 then you have come to the right place. Earlier, I have shared best AWS Security specialist courses and my thoughts and courses on cracking AWS Solution architect exam and today, I will share how you can prepare for AWS Security certification in depth. The AWS Certified Security Specialty" certification is one of the most esteemed credentials in the industry. There is now an official designation for data analysts on their resumes and applications. Two of today's most hotly debated topics, cloud computing, and security, come together with the AWS Security Specialty certification. If you're in the security field, bringing your skills to the cloud is a natural next step in your career development. 

Why Every Developer should learn Cloud Computing (AWS, AZURE or GCP) in 2023

Hello guys, if you are wondering whether you should learn Cloud Computing in 2023 then my only advice to you is just learn it. It doesn't matter whether you are a Developer or DevOps, sooner or later you will have to learn Cloud, there is no escape here and learning now is your best option. Now most of the job description for Java developers list that they will prefer candidates with familiarity and experience working in cloud platforms like AWS or Azure and if you don't have them then you will be left behind. Nowadays, whenever I open LinkedIn, I see people on my network getting AWS certified or Azure Certified or Google Certified and its not a coincidence, they are doing because their job need Cloud skills and their companies are also encouraging them to learn Cloud and become a certified Cloud Developers and that's the main reason I suggest every programmer and developer to learn about Cloud computing. 

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 use Recursion in JavaScript? Example Tutorial

If you are a programmer, you may have come across a term called “recursion”. In programming, several techniques are used to solve a problem. Recursion is one such technique. It allows you to break a big problem into smaller parts and then solve those smaller parts. It's also one of the useful techniques to solve dynamic programming-based problems and that's why it's very very important for any programmer or developer preparing for coding interviews.  Recursion is not limited to a specific programming language. It can be performed using Java, JavaScript, C, or any other programming language. In this article, we will learn what is recursion and how to perform it using JavaScript.

How to get the first and last item in an array in Java? Example Tutorial

Firstly, before going about finding the first and the last item of an array in java. We need to fully understand what an array is and how it works. What then is an Array? An array is a data structure in java that holds values of the same type with its length specified right from creation time. Think of a container, like a crate of eggs or coke. What I am trying to say is that when you are creating your array, the items coming in must be the same as you have specified as length and you must specify how many items are coming. If you have stated that the items coming are integers, so it is and no other data type (e.g string, char e.t.c) can be there and vice versa. Or you can say an array is a collection of similar type of elements which has contiguous memory location.

Java FileReader + BufferedReader Example

There are multiple ways to read a file in Java e.g. you can use a Scanner as we have seen in the last example, or you can use the BufferedReader class. The advantage of using a BufferedReader to read a text file is speed. It allows faster reading because of internal buffering provided by BufferedReader. Other Reader classes like FileReader access the file or disk every time you call the read() method but BufferedReader keeps 8KB worth of data in its internal buffer which you can read it without accessing the file multiple times. It's loaded when you access the file the first time for a subsequent read.

10 Examples of print(), println() and prinf() methods In Java - PrintStream

Hello guys, if you are working in Java or just started with Java then you have must come across statements like System.out.println("Hello world") to print something on console or command prompt. This is actually the first statement I wrote in Java when I started programming and at that time I didn't realize how it work and what is System and PrintStream class and what is out here but now I know and I am going to explain all this to you in this article, along with PrintStream class and its various print methods like print(), println() and particularly printf() to print various objects in Java. But,   Before we get to the 10 examples of Printstream printf() in Java, let me tell you a little bit more about what exactly Printstream is. 

Top 20 Project Management Interview Questions and Answers

Hello guys, if you are preparing for project manager interview and looking for frequently asked Project Management interview questions with Answers then you have come to the right place. In the past, I have shared best books and courses to learn Project Management, including best PMP courses to prepare for popular Project Management Professional Certification and in this article, I am going to share 20 common Project Management related questions from Interviews. But, before we get to some of the most important and frequently asked Project Management interview questions, let me tell you a little bit about what Project Management is.

Top 20 Cloud Computing Interview Questions and Answers

Hello guys, if you are preparing for Java developer interview or DevOps Engineer Interview, or a System admin, , knowledge of Cloud Computing is mandatory nowadays. It's even more important if you are interviewing for Cloud Engineer. Earlier, I have shared best Cloud Computing Courses and Books and today, I am going to share 20 Cloud Computing Questions for interviews. You can use these questions to revise essential Cloud Computing Concepts before interviews. If you are new to Cloud Computing space then these questions are also good to learn more about Cloud Computing by doing research.

Top 20 Cyber Security Interview Questions and Answers

Hello guys, if you are preparing for Cyber Security Engineer Job interviews and looking for frequently asked Cyber Security Interview questions with answers then you have come to the right place. Earlier, I hare shared best Cyber Security online courses and best Ethical Hacking online courses and in this article, I am going to share 20 common Interview Questions for Cyber Security Professionals. These interview questions are great to revise key Cyber Security concepts, tools, and process before you go for any interview. 

Top 20 Artificial Intelligence Interview Questions and Answers

Hello guys, if you are preparing for AI developer interview and looking for AI Interview questions and answers then you have come to the right place. Earlier, I have shared Python Interview Questions and Machine Learning Interview Questions and in this article, I am going to share 20 common Artificial Intelligence Interview Questions with answers for 1 to 2 years experienced professionals. If you have worked in the field of AI then you most likely know the answers of all of these questions but if you cannot answer then you can always check these best AI Courses to learn and improve your AI fundamental concepts. 

Top 20 Bootstrap Interview Questions Answers for Web Designers and Developers

Hello guys, if you are preparing for web design and development interview and looking for Bootstrap interview questions then you have come to the right place. Bootstrap is one of the most popular CSS Framework and almost all websites uses Bootstrap for their classy look and feel and bigger buttons and form elements. Earlier, I have shared HTML 5 Interview Questions and best online courses to learn HTML, CSS and Bootstrap courses and today, I am going  to share bootstrap interview questions with answers.  Here is a chance for you to make sure that you go into that Bootstrap interview with your head up high. Being ready for that interview is the major step that you can make as you seek to impress the interview panel on the interview day.

Chain of Responsibility Pattern in Java? Example Tutorial

Hello guys, if you have been doing Java development then you must have come across design pattern, tried and tested solution of common software problem. In the past, we have looked at several popular Object Oriented Design Patterns in Java like Adapter, Decorator, State, Strategy, Template, Composite, Command, Observer, Factory, Builder, Visitor etc, and today I am going to talk about Chain of Responsibility design pattern in Java. The Chained or Chain of Responsibility Pattern is a design pattern that allows a request to be passed along a chain of objects until it is handled by one of the objects in the chain. This pattern is helpful for situations where it is not known in advance which object in the chain should handle the request, or where the request needs to be handled by multiple objects in the chain.

Top 20 Ansible Interview Questions Answers for DevOps and Senior Developers

Hello guys, if you are preparing for DevOps or senior developer interview then you must pay attention to modern Software development and deployment tools like Docker, Kubernetes, Ansible, Chef and Salt, Puppet etc. Gone are the days where you can crack any Java Developer interview by just answer few core Java questions about HashMap and ConcurrentHashMap, nowadays a lot is expected from Java developers. There are coding round where you need to solve coding problems and then there are multiple rounds of phone and video interviews where you are asked all of kind questions about Java, Spring Boot, as well as essential tools like JUnit, Mockito, Docker, Kubernetes, Ansible etc. While focus could be different, depending upon your role, like for DevOps knowledge of Ansible is very much required for Developer only basic knowledge is good enough. 

Top 20 YAML Interview Questions Answer for Developers and DevOps Engineers

Hello guys, if you don't know YAML stands for Yet Another Markup Language and its one of the popular language for defining system rules. YAML is used in Spring Integration and most popularly in Ansible for defining Ansible playbook which you can use to install or uninstall application and do other stuff. Because of that reasons YAML has become quite popular and you may be asked about basic questions in YAML if you are going for a Developer or DevOps Interview where YAML skills are required. At the very minimum you should know how to read YAML and how to write YAML, particular declaring list and key-value pair in YAML. It's not a big topic but knowing basic really help during interview.

Top 20 UI and UX Design Interview Questions and Answers

Hello folks, if you are a fresher who want to start your career in UI and UX design or a UI or UX Designer and preparing for your next job and looking for popular UI/UX  interview questions for preparation then you have come to the right place. Earlier, I have shared HTML Interview Question, CSS Interview Questions, web development questions, and JavaScript Interview Questions and in this article, I am going to share common UI and UX interview questions with answers. If you have worked in UI and UX design for quite sometime then you may know the answers of these questions but if you are new then you may need to go through these best UI and UX design courses to refresh you knowledge about essential UI and UX design concepts. 

Top 20 Unity Interview Questions and Answers for Game Developers

Hello guys, if you are preparing for Game Developer interviews where Unity or Unity 3D is listed as main skill then you must prepare Unity Interview Questions. If you already looking for Game Developer Interview questions and Unity questions for interviews then you have come to the right place. Earlier I have shared 20 Unreal Engine Interview Questions and in this article, I am going to share 20 Unity 3D Interview Questions with answers. If you have worked in Unity 3D then you can easily answer these questions but if you struggle to answer them then I also suggest you to checkout these Unity online courses to refresh your knowledge about Unity and the benefits it offer. Interviews are often difficult to crack because of vast variety of questions but knowing essential Unity concepts and best practices always helps.

Top 20 Unreal Engine Interview Question and Answers for Game Developers

Have you been having sleepless nights just because of the Unreal Engine interview that is ahead of you? Being in this situation is unavoidable especially after you have experienced problems during your previous interviews or you totally do not know what is required of you when it comes to Unreal Engine interview. Time for being in such a situation is now a thing of the past because right in this article you are going to know the kind of questions that are usually asked in this kind of interview and this will open up your eyes and you will be more than prepared when that day comes.  In this article, I am going to share 20 common Unreal Engine Interview questions for game developers to revise key concepts and get ready for interviews. If you have used Unreal Engine before then you can easily answer these questions but if you struggle then I suggest you to join one of these best Unreal Engine online courses to learn and revise key concepts in quick time.

Top 20 Mathematics and Statistics Interview Questions and Answers

Hello guys, if you are preparing for Data Engineer or Data Scientist Interview then you must prepare for Mathematics and Statistics questions, and if you are looking for Maths and Statistics questions then you have come to the right place. In the past, I have shared multiple Data Science Interview Questions and Machine Learning Interview questions and in this article, I am going to share 20 Mathematics and Statistics questions which you can prepare for interview. If you have used Statistics and Maths recently then you are most likely to answer these questions but if you are not you can always join these Maths and Statistics courses to learn more about them and refresh you knowledge before interviews. 

Top 21 Chef Interview Questions and Answers for DevOps Engineers

Hello guys, if you are preparing for DevOps or SysOps interviews where Chef skills are required then you should prepare about common Chef Interview questions. If you already know this and looking for popular Chef Questions then you have come to the right place. Earlier, I have shared Interview questions on essential DevOps Tools like Docker Questions, Kubernetes Questions, Ansible Questions and in general DevOps questions and in this article, I am going to share common Chef interview questions and their answers. If you have used Chef in your project then most likely you will know the answers of all these questions but if you struggle to answer them then you can always checkout these Chef online courses to refresh your knowledge. 

Top 20 Shell Scripting Interview Questions and Answers

Have you struggle with Shell Scripting interview questions before? Have you been having problems in finding out the kind of questions asked in a Shell Scripting interview? If you have experienced this then it is high time that you find a solution. You cannot lose that dream job anymore and yet you can find with ease all you require to pass your interview. If that interview is a few days away, worry no more because you will get before that panel fully prepared and ready for the day by going through these common shell scripting questions. 

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. 

Asynchronous Messaging In Java? Examples Tutorials

Hello fellow Java developers? Are you tired of those pesky synchronous messages clogging up your code like old grease in a drainpipe? Fear not, because today we're talking about asynchronous messaging in Java – the ultimate solution for decoupling your processes and improving the performance of your applications.  But before we dive into the juicy details, let's start with the basics. What is Asynchronous Messaging? Asynchronous messaging is a method of communication between two or more processes, where the sender sends a message and doesn't wait for a response before continuing with its own tasks. This is in contrast to synchronous messaging, where the sender must wait for a response before continuing.

Difference between Proxy and Decorator Pattern in Java

Hello guys, if you have gone through a couple of Java Developer interview then you may seen this question about Proxy and Decorator Pattern in Java. Earlier, I have share 18 Design Pattern questions and today, I am going to answer this tricky design pattern questions from Java interviews. I was first asked about difference between Proxy and Design Pattern in Java a couple of years back when I was interviewing for Senior Java developer interview on a big investment Bank and I wasn't able to impress interviewer with my answer, so I decided to learn more and this article is the result of that research. Though both Proxy and Decorator pattern looks very similar to each other structurally, there are some key differences between them like what problem them solve and how they are used in Java application. 

Top 20 Docker Interview Questions Answers Java Developers and DevOps

Hello guys, if you are preparing for a Java developer interview, a DevOps engineer interview or any software developer interview, one tool which should pay most attention is Docker. It's a container tool which allows you to package and deploy your application in cloud. Docker has many benefits as it not only standardized packaging and deployment but works nicely with Kubernetes which takes the scalability and automatic restart of your application. These are just a couple of benefits but because of all these, Docker has become an essential tool for every programmer and developer and that's why they are also quite important for interviews. 

Top 30 Gradle Interview Questions Answers for Experienced Java Developers

Hello guys, if you are preparing for Java or Kotlin developer interview where Gradle skills are needed then you should prepare for Gradle related questions. I have seen many interviewer asking Maven and Gradle related questions during interviews and many Java developer don't prepare them. But, considering you are looking for Gradle questions I think you are one step ahead of them and If you are looking for Gradle interview questions then you have come to the right place. Earlier, I have shared Maven Interview Questions and in this article, I am going to share Gradle interview questions for Java and Kotlin developers. 

Top 24 Node.js Interview Questions with Answers for 1 to 2 Years Experienced Web Developers

Hello guys, if you are preparing for a JavaScript developer or web developer and looking for common Node.js questions to prepare for interviews then you are at right place. In the past, I have shared JavaScript interview questions, React Questions, Angular Questions and even web development questions and in this article, I am going to share frequently asked Node.js questions with answers for interviews.  Though Node.js is defined as a JavaScript environment, it is widely considered as a backend framework. Since its inception in 2008, Node.js has become a popular term in the server-side development community. More and more companies are using Node.js for backend development.

Aggregator Microservice Pattern In Java with Examples

 The Aggregator Microservice Pattern is a design pattern used to compose a complex service by aggregating the responses of multiple independent microservices. This pattern is proper when a client request requires data or functionality distributed across multiple microservices. It can improve the performance and scalability of the system by allowing each microservice to focus on a specific task and reducing the workload of a single microservice. In this article, we will discuss how the Aggregator Microservice Pattern can be implemented in Java using various approaches, such as asynchronous communication, synchronous communication, or a combination of both. We will also provide examples of code to illustrate each approach.

Top 30 Spring Core, Spring MVC and Spring Security Interview Questions Answers

Spring Interview Question is one of the first things Java programmers should prepare before appearing on any Java or Spring interview. With the immense popularity of Spring frameworks like Spring MVC and Spring Boot in the Java world, the focus on Spring skills on interviews increases daily. For those who don't know, the Spring framework is one of the most famous structures for Java applications, which aims to simplify Java development. It revolutionized the Java development when it initially came with concepts of  Dependency Injection and Inversion of Control, which made writing a testable and maintainable Java application

[Solved] How to find the Longest common prefix in Array of String in Java? Example Tutorial

Hello guys, If you are preparing for technical interviews and wondering how to solve the longest common prefix in a given array of String problems in Java then you have come to the right place. Earlier, I have shared 21 String programming problems and one of them was this one. In this article, I am going to show you how to solve this frequently asked coding problem from Java Interviews. It's one of the difficult coding problems and not every programmer I have interviewed has solved this, only a few can solve this so preparing for this one can definitely improve your chances and give you a competitive edge over other candidates.

How to check if a node exists in a binary tree or not in Java? Example Tutorial

Hello guys, if you are wondering how to check if a given node exists in a given binary tree or not then you have come to the right place. I have been sharing a lot of binary tree-based programming interview questions in the past few articles. Earlier, we have solved how to find the maximum sum level in a given binary tree, how to find the lowest common ancestor, and how to find Kth smallest element, and in his article, we will solve another classical binary tree problem of search nodes.  Bug, before finding if a node exists in a binary tree or not. It is good to understand what is a  binary tree and binary search tree and how to solve a binary tree-based coding problem. 

How to find Kth Smallest Element in a Binary Search Tree? [Solved]

Hello guys, I have been sharing binary search tree-based coding interview questions for quite some time. In the last article, we looked at how to find the maximum sum level in a given binary tree, and in this article, we will find the kth smallest number in a given binary tree like the 5th smallest or 3rd smallest number. Before we find the kth smallest in a Binary search tree, We need to understand the binary search tree. A Binary tree is a data structure in which each node can have at most two children. That is, each node in the binary tree will have data, left child and right child. The first node of the tree is called the Root.

How to find the maximum sum level in binary tree in Java? Example Tutorial

Hello guys, if you are preparing for a coding interview and wondering how to find the maximum sum level in a given binary tree in Java then you have come to the right place. I have been sharing binary tree coding problems for the last few months and in the past, we have seen questions like finding kth smallest element and finding the lowest common ancestor of a binary tree in Java in this article, you will learn how to find the maximum sum level in a given binary tree of integers or numbers. But, before finding the maximum sum level of a binary tree in java, we need to have a good understanding of a binary search tree. Both theoretical knowledge and how to implement binary search tree in Java is important to solve tree-based coding problems

Difference between Thread.yield and Thread.sleep in Java? Answer

Sleep vs yield in Java
Sleep and yield are two methods that are used to get CPU back from Thread to Thread Scheduler in java but they are completely different than each other. The major difference between Sleep vs yield is that sleep is more reliable than yield and it's advised to use sleep(1) instead of yield to relinquish CPU in multi-threaded Java applications to give an opportunity to other threads to execute. In this Java tutorial, we will what are the differences between yield and sleep in Java. But before seeing the difference between sleep and Yield let's see some similarities between yield and sleep in Java

Top 10 Projects You can Build to Learn Spring Boot in 2023

Hello guys, I have always said that there is no better way to learn anything then actually doing it and its 100% true for Spring Boot, one of the popular Framework for Java application Development. In my 20 years of experience, I have found that the best way to learn Java and Spring Boot is building projects. When you build project, common task surface them like creating a List or sorting a List and then you research and learn. Those learning stuck and make you better developer. Building project also have many advantage like it allows you to use a lot of technologies like Git, IntelliJIDEA, Hibernate, APIs etc together to build something which you can showcase to your potential employer. 

Event Sourcing Pattern in Java Microservices with Examples

Hello Java programmers, if you are tired of constantly trying to keep track of your application's state using a traditional relational database? The Event Sourcing pattern might be just what you need.  It's also one of the 10 essential Microservice patterns I have shared earlier and its one of the top 3 along with Saga and CQRS patterns which we have seen in my earlier articles.  In a nutshell, the Event Sourcing pattern involves storing the complete history of an application's state as a sequence of events. Each event represents a change in the application's state, such as the creation of a new record or the modification of an existing one.

10 Projects you can build to Learn Java in 2023

Hello guys, from my 20 years of experience as a Java developer, from building games with J2ME to writing server side, multi-threading Java servers,  I can say that building project is the best way to learn Java but you also need to choose the right project because if you choose a trivial project you will not learn anything and at the same time, if you choose a hard project, you will frustrate and not complete it and not learn anything. That's why, its very important to choose the right kind of project when you learning Java. These project will not only complement your learning but also challenge you but not set an impossible task for you. Which means, you will learn and also have fund building them. If you are now looking for best Java Project ideas for beginners then you have come to the right place. 

10 Tools Every Software Engineer Should Learn In 2023

Hello guys, as a software engineer, staying up-to-date with the latest tools and technologies is essential to your success and one way to keep yourself up-to-date is to learn new framework, libraries and tools. Earlier, I have shared 5 Java Frameworks to learn in 2023 and in this article, we will introduce you to 10 tools that every software engineer should learn in 2023. The list includes, both essential and advanced tools from Git and Docker to TypeScript and GraphQL, which you will need in your day to day development, particularly on web development. 

What is CQRS - Command Query Responsibility Segregator Pattern in Java? Example Tutorial

Hello guys, if you are wondering what is CQRS pattern and when and how to use it in your Microservices then you have come to the right place. CQRS is one of the 10 essential Microservice pattern and can be used when your application is either read heavy or write heavy and reading and writing requirement are very different. It aims to separate your app into two parts, command part which writes data and query part which read data and that's how it allows you to develop, scale and optimize them separately. It's also one of the popular Microservices Questions and if you are preparing for interviews, you should prepare this pattern as well. Earlier, I have explained SAGA Pattern and Database Per Microservice pattern and in this article I will explain CQRS pattern, when to use it and what problem does it solve. 

10 examples of crontab commands in Linux

Hello guys, if you are working in Linux or UNIX environment and scheduled any job or script to run at a particular time at everyday like a script to archive log files at midnight or a script to restart your app on Monday morning then you must have come across crontab command in Linux. While there are many solution to schedule jobs in enterprise application like Control M from Bmc Software and AutoSys but the crontab command provides the easiest way to schedule any script in Linux, as you don't need any third party software for scheduling. It's also quite popular, so much so that all the jobs scheduled by crontab is called cron jobs, and that's why I think every developer should know about crontab command and how to use it. 

When to use PUT or POST in a RESTful API and Web Service? Answer

Hello guys, if you are confused about whether to use PUT or POST for updating a resource using RESTful web service then you have come to the right place. In the past, I have shared the best RESTful web service books and courses and today, I am going to share some tips to choose between PUT and POST while designing your RESTful web services. Btw, you are not alone, one of the most common confusion among web developers is the choice of PUT or POST HTTP method for creating and updating a resource while developing RESTful Web Services. Since both can be used to submit data, you can use either POST or PUT to create or update a resource.
 

10 Examples of New HttpClient + HttpRequest + HttpResponse In Java 11 (REST Client]

Hello guys, one of the notable addition in recent Java release is the full fledged HttpClient from Java. This is one of the class or utility which was much needed in Java. It was quite surprising that JDK doesn't have any fully functional HTTP client to connect to REST APIs in this world of API Integration. Until Java 11, Java developer rely on classes like RestTemplate and WebClient from Spring Framework to make HTTP class to REST APIs, but now you don't need to include Spring Framework in your project just for that. You can now use HttpClient class and its support classes like HttpRequest and HttpResponse to make both synchronous and asynchronous HTTP calls in Java. 

Java + Spring Boot + Microservices Example - Step by Step Guide

Hello guys, if you are wondering how to create a Microservice in Java and Spring Boot then you are ar the right place. In the past, I have shared best Spring Boot courses for Microservices, Interview Questions as well as essential Microservice design principles and patterns like circuit breaker, CQRS, Event sourcing etc and In this article, we will cover the fundamentals of microservices with Spring Boot utilizing Spring cloud. We will cover a few fundamental ideas and then we will make a little micro-service to give you an outline. I will also share step by step guide to make Microservices in Java and then deploy them using Docker and Kubernetes on Cloud. 

[Solved] java.lang.ClassNotFoundException: org.Springframework.Web.Context.ContextLoaderListener in Java and Spring

Problem : You are getting java.lang.ClassNotFoundException : org.Springframework.Web.
Context.ContextLoaderListener in your Spring-based Java Web application.
Cause: This error comes when you are using the Spring MVC framework in your Java Web application and configured org.springframework.web.context.ContextLoaderListener as a listener in your deployment descriptor also known as web.xml, but the JAR which contains this class is not available in the web application's CLASSPATH.

How to fix org.springframework.beans.factory.BeanCreationException: Error creating bean with name X [Java Spring]

If you are using the Spring framework in your Java application and getting this error during startup it means Spring is not able to initialize the bean X and add it into its application context, Why? There could be multiple reasons like a typo on the spring bean name. Let's take a closer look at the stack trace to find out the real reason:

BeanInstantiationException: Could not instantiate bean class [X]: No default constructor found; nested exception is java.lang.NoSuchMethodException: X.()

Here X is the class, which is declared as Spring bean. The error clearly says that the default constructor is not present in class X.

Difference between Serializable vs Externalizable in Java - Interview Question

What is the difference between Serializable and Externalizable in Java is famous core Java interview questions and for some of them its one of those difficult Java question, which no one wants to see in Java interview. I was in that category until I read Effective Java and explored How Serialization works in Java and find out more about the Serialization process. What makes Serialization questions tricky is, Serialization as a persistence mechanism is not very popular. Many programmers prefer databases, memory-mapped files, or simple text files over Serialization. But Serialization has a distinguished advantage over these mechanisms.

Top 10 Git Commands Every Programmer Should Learn in 2023 (with ChatGPT Examples)

Hello guys, Git is one of the most important skill for programmers, developers and data scientist and if you don't know git then you will struggle working in a team. If you want to learn Git in 2023 then you can start with these essential Git commands. I have explained the command and give you example. For examples, I have asked ChatGPT to see how it explains and I was amazed to see the response so I have included here for my own reference. I don't if ChatGPT will remain free forever but I am taking screenshot for the questions which I am asking so that I can keep a record for myself and you in future as ChatGPT is the best instructor I have got today and its helping me to learn and revise several key concepts. 

What is ContextLoaderListener in Spring MVC? Example Tutorial

The ContextLoaderListner is one of the essential components of the Spring MVC framework, probably the most important after the DispatcherServlet itself. It is used to create the root context and responsible for loading beans, which are shared by multiple DispatcherServlet like beans related to the service layer and data access layer. In general, When you develop Spring MVC based web applications and also using Spring in the services layer, you need to provide two application-contexts. The first one is configured using ContextLoaderListener, and the other is set using DispatcherServlet. The DispatcherServlet is responsible for loading web component-specific beans like controllers, view resolvers, and handler mappings while, as I said before, ContextLoaderListener is accountable for loading middle-tier and data-tier beans which forms the back end of Spring applications.

What is the use of DispatcherServlet in Spring MVC? Interview Question Example

Hello guys, In today's article we are going to discuss one interesting and the important Spring MVC concept, which is also a popular Spring Interview question. How DispatcherServlet works internally in Spring MVC or What is the role of DispatcherServlet in Spring MVC are some of the frequently asked Spring MVC Interview Questions. You might have seen them already during your previous Java web development interviews but if you have not, it's a good question to know. In this article, I'll answer these questions by explaining What is DispatcherServlet and its importance in Spring MVC. The DispatcherServlet is one of the important components of the Spring MVC web framework and acts as a Front Controller.

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.  

26 Spring Framework Interview Questions Answers for 2 to 4 years experienced Java Developers

Spring is one of the most popular framework and most widely used to develop Java Web application using MVC framework. Due to its immense popularity its expected from Java guys to know how to use Spring framework and how it works. Most of the Java development position uses Spring, Hibernate along with core Java and JEE web technologies like Servlet, JSP, and JSF. In this article, I will be sharing some frequently asked Spring interview question for Java JEE developers. It will contain questions from different Spring modules like Spring MVC, Spring core, the concept on which Spring is built e.g. IOC and DI and Spring security.

What is @Bean Annotation in Spring Framework? Example Tutorial

Hello Java programmers, if you are wondering what is @Bean annotation in Spring Framework, what is the purpose, and how to use it then you have come to the right place. Earlier, I have shared the best free Spring core and spring MVC courses and In this tutorial, you will learn the most frequently used Spring annotations @Bean, which are used to define different types of beans. Beans are the fundamentals of Spring framework, they represent the POJO class which is created and managed by Spring Framework. Whole Spring framework is about beans and their relationships.