0% found this document useful (0 votes)
0 views6 pages

Interview Questions of java

The document contains a comprehensive list of technical questions and topics related to Java, Spring Boot, REST APIs, design patterns, and database management. It includes queries about specific features, coding challenges, and concepts such as microservices, exception handling, and data structures. Additionally, it covers interview questions from various companies, highlighting the candidate's knowledge and experience in software development and architecture.
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)
0 views6 pages

Interview Questions of java

The document contains a comprehensive list of technical questions and topics related to Java, Spring Boot, REST APIs, design patterns, and database management. It includes queries about specific features, coding challenges, and concepts such as microservices, exception handling, and data structures. Additionally, it covers interview questions from various companies, highlighting the candidate's knowledge and experience in software development and architecture.
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/ 6

How many design patterns have I worked on?

2. explain Builder design patterns (As I said I know it).


3. How to Secure your API?
4. How to Authenticate your API using Spring boot?
5. How to authenticate any URL that comes to your Application without hitting the
DB first? ( As I answered I will use the credential from DB to validate the user
who is sending the URL)
6. Say you have 100 xml which you need to read and process it. how to do it using
multi threading so that the performance gets improved?
7. About my role in my current project.
8.How the deployment happens in my project and do I have any experience in
deployment of my application on Server?
9. JAVA 11 new features.
10. Have done any automation testing or not.
11. Do I have experience on Cloud and AWS?

Find the identical twins for given array


Array: [1, 2, 2, 3, 2, 1]
Explanation:
Identical Twins: [[1, 1], [2, 2], [2, 2], [2, 2]]
Indexes: (0, 5), (1, 2), (1, 4), (2, 4)
Output: 4

Coding question for String reveral and print non repeating characters
Rest API with some example
POST vs PUT
How do we handle if we need to talk to two different databases in single
transaction, Exception handling in this scenario
what is idempotent method in rest api
HashMap Internal working
ArrayList vs LinkedList
@Primary Annotation & @Qualifier Annotation usage
How to hide an API from documentation
Design Patterns known and used in the previous projects
Few DB related questions

Questions asked for Thomson Reuters:

1. Java 8 features.
2. stream API
3. SOLID principles
4. Exception Hierarchy
5. monolith and microservice
6. how applications communicate with each other
7. resttemplate
8. what is rest in detail.
9. Transactions in hibernate
10. Transaction propagation
11. why only json in rest
12. few programs
13. write one API by following REST guidelines
14. @PathParam, @RequestParam
15. @component, @service @repository
16. what is spring framework
17. Spring context
18. spring bean
19. bean scopes
20. Dependency Injections
21. Proxy in spring
22. Functional interfaces
23. Can we have default and static methods in functional interfaces
24. Marker interfaces
25. SQL query

Given an integer array, move all elements that are 0 to the left while maintaining
the order of other elements in the array. The array has to be modified in-place.
Original Array
1, 10, 20, 0, 59, 63, 0, 88, 0,
After Moving Zeroes to Left
0, 0, 0, 1, 10, 20, 59, 63, 88,

Challenges face while migration monolith to microservices


what are http methods available for rest.
what is idempotent method in rest and why.
Diff b/w put and patch.
How to manage if spring boot startup time is taking too much time
How to manage transaction if one rest endpoint calling two Database call using the
service class
If one microservice is down, then what is way to identify.
How add log4j in spring boot.
What is use of pom.xml and how we can add 3rd party library.
Design Pattern, where you have used singleton design pattern.
How call API from Angular

what is NoSQL? How data is stored


what is Distributed Systems
Designing SQL Schema for bookmyshow service
Questions on Micro Services -> Fault Tolearance
Rest API
Kafka vs Rest API which is better?
how to trasnfer message over network securely
Design Patterns - Singleton, Factory Method pattern, Structural design patterns
Advantages of distributed systems over centralized systems
ACID Properties in DB
Kafka advantages
what is graphQL? and how data is stored?
Different ways to call another Microserve API call
What is race condition? when it occurs? How to fix?
Reverse Array in groups of given size
Longest Substring with unique characters
Explain JWT
Can we implement our own logic in interfaces?
what is abstraction? give examples
what do u do when one of the microservices is down?
stored procedure with springjpa?

data types in java?

how to declare array ??

difference between spring boot and spring mvc?

how to check to 2 differnt commit-checks in github ???


difference between Rest vs soap??

heap & stack in java ??

primary key and foreign key??

comprator & comparable..??

Trigger in sql??

primary and unique key??

hashtable and concurrenthashmap


internal working of hashmap???
How to Detect Memory Leaks in Java??
Microservices??
difer b/w unit test and integration test???
test driven developement?
cron job....schudled job?
what rest???
StringTokenizer???
callable interface in java??
fail fast and fail safe???

tcs client:(prinka)
============================
list and arraylist?
map and hashmap?
method used to put information in list?
string pool?
where sting pool location in memory?(heap,stack)
how to create a object without new keyword?
hiraracie of exception class?
string builder and string buffer?
throw and throws?
get and post?
status codes ?(400,200,404,)
immutable class creation process?
can we create object for abstract class ?no we cann't create object
array and arraylist?

Happiest minds:
========================
what are prototype beans?
what is auto wiring?
what is dependency injection?
difference between list and set?
why are you using spring?
oops concept you have used in projecct?
dispacter servelt?
============================================

tera soft:
===========================================
difference between list and set?
How hash map works internally?
@services,@componet,@controller
Scope of bean?
@springbootApplication?
how spring boot application works?
@request,@requestmapping?
Wrapper classes?
what is spring jpa?

String:
=========================
why string is immutable?
what is immutabulity?
how to create a immutable class?
Difference between string,String buffer&String builder?
how many objects are created When new keyword is used,string when literals are
used?

How java is platform independent?


What is Encapsulation?
What is polymorphisam?
What is Abstarction?
inheritance in java?
What is Exception ?what is Exception handling?
explain final,finally,finalize?
What is hashMap,Hash Table,ArrayList,LinkedList,LinkedList and linkedhashmap?
Difference between interface and abstract class?
Difference between string and String buffer?
how hashmap works ?
what is spring?
what is dispatcher servlet?
Explain Scope of bean?
Explain life cycle of bean?
what is dependency injection?
difference between Spring and spring boot?
what is ORM?
What is component scan?
Difference between controller and rest controller?
How to Create Immutable Class in java?
Life cycle of a Thread (Thread States)?
what is servlet?
what is diamond inhertence problem?
what is functional interface?
what is view,cursor,index in sql?
Difference between functions and procedure?
what are functions in sql?
what is procedure?
difference between delete,drop and truncate?
equal and hashcode?
Default size of array list?
difference between hashset and set?
why string is immutable?

aclara

main difference between interface and abstrcat?


design patterns?
what is yml file?
what is unit testing?

===============================
left join,right join,inner join?
can we sort hash map ?
oops concepts?
serialization?
comparater and comparable?
exception?(try,catch,throw,throws)
adding elements and retriveing elements using map?
load vs get?
hash map vs hashtable?
what is thread,how to create thread,how to handle multiple threads?
difference between hql and hcql?
how to connect multiple databases in hibernate?
hibernate configuration.xml and its property tags?
explain connection pool?
explain caching in hibernate?
associate mapping & inheritence mapping?
how hashmap works internally?
how to write custom exceptions?program?
Equals method?
naming query?
print fourth repeated word in sentence?

-----------------------------------------------------
bean,
command used in java loading to execeute?
ExceptionHandling with MethodOverriding in Java?
transient keyword,abscrat interface,try-catch,
scopes-spring,javaw-rx, @post-bean & @pre-destroy,
get() and load() in Hibernate:
object class.
What is Session?
What is SessionFactory?

You might also like