0% found this document useful (0 votes)
2 views

Java_Interview_Questions

The document outlines various advanced Java concepts, including the diamond problem, design patterns, and differences between collections like HashMap and LinkedHashMap. It also covers Java 8 features such as functional interfaces and stream programming, along with Spring Boot topics like stored procedures and AOP programming. Additionally, it touches on microservices communication, database operations, and programming challenges, as well as AWS services and Kafka implementation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Java_Interview_Questions

The document outlines various advanced Java concepts, including the diamond problem, design patterns, and differences between collections like HashMap and LinkedHashMap. It also covers Java 8 features such as functional interfaces and stream programming, along with Spring Boot topics like stored procedures and AOP programming. Additionally, it touches on microservices communication, database operations, and programming challenges, as well as AWS services and Kafka implementation.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Java:

Diamond problem

abstract class vs interface

design patterns atleast two from each section

write code for factoryDesign pattern

hashMap vs linkedHashMap

hashing in depth

hashMap implementation

comparator vs comparable

concurrent hashMap vs synchnonous

Set vs TreeSet

how volatile works ?

Types of generators

how many ways object can be created

Stack & Queue (back button history maintenance)

Singleton custom class

Thread implementation

Threadpool

multipthreading implementation

try-with-resource

queue vs deque

Executor service and handling queue

how to make arrayList threadsafe

Java 8:
functional interface

stream vs parallel stream()

default method advantages


filter, map, flatMap, collect, IntStream, Stream.Of(), sorted, reverseSort, sortedBasedOn
parameter

Lambda function

Garbage collection introduced in Java8.

advantages of stream programming ?

Spring Boot:
calling stored procedure from Spring data JPA

what is spring context

circular dependency problem and how to overcome ?

what is actuator? And its advantages in depth

By default spring comes up with tomcat, how to user different server ?

what is @ configuration class

how to configure two databases

what is qualifier

@springBootApplication uses in depth

how to exclude package from creating beans.

what is AOP programming?

types of autowiring

profiling in spring boot

war vs jar

@Resource vs @Qualifier vs @Inject

what is the purpose of having different annotations like @controller vs @component vs


@service

Microservices:
Communication between micro services
ciruit breaker

Different design patterns

loggin

Feign -> to communicate with other microservice

how to make sure A1 serice call reached A2 service.

Database:
Pull second highest salary from table

indexing

views -> will it allocate any memory?

triggers

stored procedure vs function in database ?

Indexing in depth and its types

partitioning in database

perfomance improvement w.r.t database queries

Give Me the List of Employees,

Has Less Sal | Has More Sal

1 | ABC | 35 2

2 | PQR | 40 3

3 | XYZ | 10 1

output:

XYZ | ABC

XYZ | PQR

ABC | PQR

Programs:
Sum of two big nubmers which are in string format

sum of two big nubmers which are in string format comma separated(1,75,112 + 5,85,112)

Print top 5 longest word that should not have repeating character.

reverse string ?

check if given array is balanced or not

rotate an array given n of times left or right

check if two random string can be palindrom or not

find out the char needs to be removed to make it palindrom.

AWS:
how to handle S3 bucket with large files

EC2

Lambda

dynamo DB

EKS/Kubernates

Auto Scaling

Kafka:
implementation

Redis cluster
Docker/kuberatives

You might also like