Most Asked Java, Spring Boot, M's Interview question for 5+ years experienced in 2023 | Code Decode

preview_player
Показать описание
In this video of code decode for 5+ years experienced most asked java spring boot microservice hibernate interview questions for 5 years in 2023

Can we use HashMap in a multi-threaded environment?
You can use the HashMap for query services (in CQRS Microservices Design pattern ) but the probability of working fine depends on the way we use it. For instance, consider the HashMap of configuration properties, if the HashMap initialization / modification was done by using just one thread, and the remaining threads do the task of reading from the map, then HashMap would work perfectly well.

The problem arises when there is concurrent update on Hash Map. Hence, during such scenarios, we can use the HashTable or ConcurrentHashMap

Is there any difference in defining or creating a String by using String literal and by using the new() operator?
Creating string using the new operator ensures that the String is created in the heap and into the string pool both.

Whereas, creating string using literal ensures that the string is created in the string pool.

String pool exists as part of the heap.

This ensures that the multiple Strings created using literal having same values are pointed to one object and prevents duplicate objects with the same value from being created

What do you know about Factory Design Pattern in Java?
Factory design pattern is the most commonly used pattern in Java.

They belong to Creational Patterns because it provides means of creating an object of different instances.

What are the Spring Boot Starters?
Spring Boot Starters are a set of pre-configured dependencies that can be easily included in your project to quickly get started with common features or technologies.

Spring boot starter is a maven template that contains a collection of all the relevant transitive dependencies that are needed to start a particular functionality.

Like we need to import spring-boot-starter-web dependency for creating a web application.

What is Spring Boot Actuator?
Spring Boot Actuator is a set of features that provide monitoring and management capabilities for your Spring Boot application.

Actuator endpoints expose information about your application, such as health status, metrics, and environment variables, that can be used to monitor and manage your application.

The profile names can also be passed in via a JVM system parameter. These profiles will be activated during application startup:

Whats AOP
Aspect Oriented Programming (AOP) is a programming paradigm aiming to segregate cross-cutting functionalities, such as logging, from business logic in an application

Aspect - Aspect is a class in which we define Pointcuts and Advices.

Advice - It’s the behavior that addresses system-wide concerns (logging, security checks, etc…). This behavior is represented by a method to be executed at a JoinPoint. This behavior can be executed Before, After, or Around the JoinPoint according to the Advice type as we will see later.

Pointcut - A Pointcut is an expression that defines at what JoinPoints a given Advice should be applied.

JoinPoint - Simply put, a JoinPoint is a point in the execution flow of a method where an Aspect (new behavior) can be plugged in.

How can you access a value defined in the application? What is properties file in Spring Boot?
Use the @Value annotation to access the properties which is defined in the application – properties file.



Swagger 2 is an open-source service provided in Spring Boot which makes it easier for the machines to find out the structure of APIs like RESTful Web services.

Hibernate Interview Questions and Answers:

Spring Boot Interview Questions and Answers:

Subscriber and Follow Code Decode

#java #interviewquestions #codedecode
Комментарии
Автор

Just wondering how did u collect this all questions, a month back I had an interview and all the questions they asked are from this video 😅but unfortunately I couldn’t watch this video that time ..btw great work 😍please make more videos for experienced java developers where they ask specific example from the projects 😅

MrGoodLuck
Автор

WebClinet Supports Async communication as well

sarojsahoo
Автор

Your videos helps me do better in each interview ❤ i have improved alot!!!!
thank you so much 🙏😊

vivithamtp
Автор

very nice content. More Questions for Java, spring boot, REST, SQL 5+ exp would be very much appriciated.

ruchitade
Автор

Awesome nice set of questions answered discussion
Very well explained 🙏🙏

pravaskumar
Автор

speechless explained & containt also very perfect

ravirajpradhan
Автор

I was thinking of this the whole day and see I got the notification 😂
Thank you 🙏

prashantshetty
Автор

Great explanation. Please make video on some coding questions also. Thank you.

hridikasaha
Автор

Desperately I need this, thanks for posting, also can you please make video on, how we will maintain session from one microservice to another microservice while calling through rest template? Very much needed answer mam? Similarly how we are maintaining transaction from one microservice to another microservice?

jakkalapavithra
Автор

Ma'am please make videos series on Devops Engineer interview questions and answers

mdumarreza
Автор

How to learn data structure and algorithm..please make video on it as well.

vishalbharat
Автор

Thanks for ur support...
Expecting more interview questions..
Can you pls upload a detailed explanation of basic hashing, hashing algorithm and new changes recently introduced in hashing if any

muhassinmusthafa
Автор

Love the content. Please do more videos on interview questions..

sarannav
Автор

thanks for the video . Please make video on 7+ exp and 9+exp as well

subhadipde
Автор

Thank you So much mam. Today I have selected in one company. I got a clear idea what to prepare for the interviews by following your videos. Eventhough i have three years of career break i got selected. Your videos helped me a lot. Your explaination is very good mam. If i feel any topic is difficult and definately it will becomes easy after listen to your video on that perticular topic. Thank you so

kottesravanthi
Автор

Appreciated your effort team..

In most of the compnies interviewer asking scenario based questions on Hashmaps .
For ex : if bucket is empty nd if we try to insert key for that bucket will it execute equals method or not.

What happens if we insert same key

Nd mny more.. Could you please come up with such scenario based questions

ramyal
Автор

Yes We want For 7+ and 9+ and may be Part 2 for 5+ Years
Looking Forward For Videos

pranjalkatyayan
Автор

Thank you for great video and explanation. Can you please share link for 7+ experience?

parakhrakhee
Автор

Thank you for sharing this video,
Can you please share interview questions video for 7+ years of experience

chiragrathod
Автор

Plz make a tutorial on how to implement spring security end to end (line by line code) with Oauth2 and bcrypt

drumstick_farming