realNameHidden

realNameHidden @realnamehidden1_61

About: Actively Looking For Work Youtube Channel Link : https://www.youtube.com/@realNameHiddenn Blog : https://idiotprogrammern.blogspot.com/

Location:
India
Joined:
Oct 23, 2021

realNameHidden
articles - 173 total

🧠 How Java Handles Memory — What Are Stack, Heap, and Garbage Collection?

Learn how Java handles memory with Stack, Heap, and Garbage Collection. Understand these core Java...

Learn More 5 0Oct 17

🧠 Mastering Transient vs Volatile in Java: A Beginner’s Guide

Learn the key differences between transient and volatile in Java with simple examples. Understand how...

Learn More 5 0Oct 5

What Is the Difference Between Fail-Safe and Fail-Fast Iterators?

Overview of Iterators in Java In Java, iterators are objects that allow sequential access to...

Learn More 5 0Sep 21

Can you have a try without a catch in Java?

Yes, in Java, you can have a try block without a catch block as long as it’s paired with a finally...

Learn More 5 1Sep 9

Mono in Spring Boot Explained with Simple Examples

🟢 Imagine this scenario: Normally, in Spring Boot (MVC), when you...

Learn More 5 0Aug 31

What Are Two Types of Casting in Java?

🔹 1. Primitive Casting This is casting between primitive data types (like int, double, float,...

Learn More 5 0Aug 30

Java 8 — map() vs flatMap()

side-by-side comparison of map() vs flatMap() on the same dataset so you can clearly see the...

Learn More 7 2Aug 10

mysql stored procedure Example with Spring data jpa

Create the table with Some Records CREATE TABLE `emp_tab` ( `eno` int NOT NULL, `ename`...

Learn More 5 0Jul 6

🏃‍♂️ Runners in Spring Boot – What They Are and How to Use Them

🏃‍♂️ Runners in Spring Boot – What They Are and How to Use Them Ever wondered how to run...

Learn More 5 0Jun 29

🛠️ Inject Complex Data Types in Spring Boot Using @ConfigurationProperties

🛠️ Inject Complex Data Types in Spring Boot Using @ConfigurationProperties Meta...

Learn More 5 0Jun 29

Mastering @ConfigurationProperties in Spring Boot: Injecting Configuration in a Clean & Scalable Way

✅ Mastering @ConfigurationProperties in Spring Boot: Injecting Configuration in a Clean...

Learn More 5 0Jun 29

@Value Annotaion Example in Spring Boot

application.properties spring.application.name=ValueAnnotation hospital.name=Apollo hospital.age...

Learn More 5 0Jun 28

how to use RestTemplate in a Spring Boot application to make an HTTP GET request

✅ What is RestTemplate? RestTemplate is a synchronous client to perform HTTP requests in a Spring...

Learn More 5 1May 3

How to read Query Param in Spring Boot

Create Project with Spring Web Dependency Directory Structure: pom.xml <?xml version="1.0"...

Learn More 5 0May 3

@Qualifier Example in Spring Boot

In Spring, when you have multiple beans of the same type, Spring gets confused about which one to...

Learn More 0 0Apr 19

@ControllerAdvice and @ExceptionHandler Annotations Spring Boot

Exception Handling in Spring Boot — A Simple Example 🚀 Spring Boot provides multiple ways to handle...

Learn More 9 0Mar 29

@Bean annotation example in spring boot

Directory Structure pom.xml <?xml version="1.0" encoding="UTF-8"?> <project...

Learn More 7 0Mar 15

Example of @Async in Spring Boot for Beginners

The @async annotation in Spring Boot allows you to run tasks asynchronously (in the background)...

Learn More 5 0Mar 9

any() method in Mockito Spring Boot example

The any() method in Mockito is used as a matcher to specify that any value of a given type can be...

Learn More 5 0Feb 23

doNothing()method example Spring Boot

When to Use doNothing()? When testing void methods that perform side effects (e.g., sending emails,...

Learn More 6 0Feb 16

doReturn() method in Mockito example

Spring Boot Example Using doReturn() in Mockito The doReturn() method in Mockito is used when you...

Learn More 6 0Feb 8

thenThrow() method in Mockito example

Scenario: Mocking a Service to Throw an Exception for Testing Error Handling in a Controller 1....

Learn More 6 0Feb 1

thenReturn() method in Mockito example

Scenario: Mocking a Service to Test a Controller Application Code Employee.java package...

Learn More 5 0Jan 26

when() method in Mockito example

Spring Boot example demonstrating the use of when() in unit testing with Mockito. The example covers...

Learn More 6 0Jan 18

verify() method in Mockito example

The verify() method in Mockito is used to confirm that specific interactions with mocked objects...

Learn More 6 0Jan 12

List.of() vs Arrays.asList() in java

When working with Java, both List.of() (introduced in Java 9) and Arrays.asList() (available since...

Learn More 7 0Jan 5

@PreConstruct and @PostConstruct annotation Spring Boot Example

@PostConstruct: This method is called after the Spring bean (in this case, ExampleBean) has been...

Learn More 6 1Jan 5

With Spring can I make an optional path variable?

Yes, you can make a path variable optional in Spring by using @PathVariable with the required...

Learn More 8 0Dec 28 '24

Java Stream Scenario Based Interview Question

You have a list of employees with fields like name, age, and department. Write a code snippet to...

Learn More 7 0Dec 25 '24

Java scenario based interview questions

You have a list of strings: ["apple", "banana", "cherry", "date", "fig", "grape"]. Write a code...

Learn More 9 0Dec 15 '24