0% found this document useful (0 votes)
3 views2 pages

Interview Questions Java

The document covers various advanced Java concepts including abstract classes, collections, exceptions, and design patterns. It also discusses Spring and Spring Boot features, RESTful services, and microservices architecture. Additionally, it touches on Java 8 features like functional interfaces and streams, as well as testing with JUnit.

Uploaded by

Juveria Shaikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Interview Questions Java

The document covers various advanced Java concepts including abstract classes, collections, exceptions, and design patterns. It also discusses Spring and Spring Boot features, RESTful services, and microservices architecture. Additionally, it touches on Java 8 features like functional interfaces and streams, as well as testing with JUnit.

Uploaded by

Juveria Shaikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Core Java + Collection

can we have constructor in abstract class,


if its not initialize then why we can write constructor in abstract class,
fail fast vs fail safe
runnable vs callable
abstract vs interface
abstract class without abstract method -- allowed or not
can we override main method if yes why if no why
can we oveload main method if yes why if no why
custom exceptions, how can we write custom checked exceptions and unchecked
exceptions,
which are compile time and which are runtime exceptions
internal working of hashset, hashmap, concurrent hashmap
concurrent hashmap vs synchronized hashmap
Design patterns, explain singleton design patterns
ways to create object
can we serialize static object
how to make class immutatble
noclassdeffounderror vs classnotfoundexception
why strings are immutable
will finally always executerd
daemon thread and user thread
ways to create threads
what will happen if we dont override run method
T1.start() vs T1.run()
thread lifecycle
unreachable catch block

SOLID principals
JAVA 8 features

what is functional interface


can we have private static methods in functionalinterface
what is stream in streamAPI
Lambda expression
prdicates, cosumers, suppliers, Functions
Any improvements you in java 8 in hashmap
Completable future

Spring
what is @Bean, where do we use it, why do we use it on method level, can't we
directly use @Autowired
what is @Qualifire
what is @PostConstruct
in spring default scope of all objects in spring -
Spring IOC and DI

SpringMVC

spring mvc flow


front controller/dispatcher servlet

SpringBoot
spring vs springboot
@Restcontroller vs @controller
authorization and authentication
what is transaction @Transaction
explain entities in mapping, how to define One to many
Exception handling in springboot, what is a default exceptions handling
mechanism available in springboot
jpa and spring data jpa
how to apply hibernate in application steps
what sessionfactory does
diff between configuring bean at class level and at method level
@AutoConfigurtion
@SpringBootApplications explain annotation
Actuators -> what is health
schedulers
devtools
spring profiling
loggers where to enable
cross CORS

Junit testing

REST
when to use put and when to use patch restmethods
how to pass parameters in GET or Post, what if i want to send optional
parameters, imight sent or might not

Microservices
What is microservice
What is hysterix, explain more
Circuit breaker
Explain fault tolerance and how will u implement this if something goes wrong
in ur application
how does microservices communicate

You might also like