- what is immutable cass in java?
- use a stream API to find highest salaried employee?
- Functional Interface?
- what is dead lock and how to avoid it?
- Executors framework?
- what is singleton design pattern and how to break it?
- What do you do if there is any outofmemory error happens?
- How to analyze heap dump?
- What is the use of immutable class?
- How to do you header among all the controllers?
- Transactions in spring?
- Garbage collector in java?
- How to break singleton design pattern?
- Database indexes?
- How to decide which column to be indexed?
- What is marker interface?
- What are different types of class loader? And it's chain of responsibility?
- How to log a execution time after execution of list of controllers?
- What is immutable class? How to break ?
- Java spring question to count employee based on gender.
- Hashmap internals?
- Big o notation for hashmap?
- Find immediate largest element in the array?
- What is functional interface?
- What is predicate functional interface?
- Anonymous function?
- Let vs var key
- Const key can be modfiable.
- How to create immutable object in javascript
- Deep copy vs shallow copy
- What is usecallback?
- Can we replace context with redux
- Lazy loading
- @controller vs restcontroller
- Find unique character using stream.
- Micro frontend?
- Create two micro service and communicate via feign client.
- Reverse a string without using extra space?
- What is outofmemory error? Is it checked or unchecked exception?
- What is qualifier in spring?
- System diagram of current app.
- How authentication and authorisation works?
- what is second-level cache in hibernate?
- What is singleton patterns. What is the use of it?
- Restcontroller vs controller
- What is useState and useEffect.
- What is equivalent of componentdidunmount in functional component.
- What is interface?
- Private methods in interface?
- Diff abstraction class and interface?
- Rest api get vs post?
- Limitation of get?
- Query param character limit?
- how to not use caching in spring JPA?
- diff Controller vs RestController?
- what is Qualifier annotation?
- what is deep and shallow copy?
- how to decide whether react component has to render or not?
- how to get previous state of react component?
- best practises to improve react performance?
- what is useMemo vs useCallback?
- what is multithread in js? webworkers vs service workers?
- setTimer function?
- write a code for a class which extends interface?
- create a code for factory design pattern?
- diff abstract class vs interface?
- can we have a private methods in interface?
- write a code for incrementor/decrementor using ReactJS?
- explain about your project structure?
-
Diff class component vs functional components in reactjs.
-
What webAPI vs callstack vs eventloop
-
Lifecyle methods
-
useEffect and useState hooks
-
How redux works?
-
Given a list of names: List list = Arrays.asList( "Alice", "Bob", "Charlie", "David", "Emily", "Frank") write a Java 8 program to: Filter out names with more than 4 letters. Transform the remaining names to uppercase. Print each transformed name. Ans:- list.stream().filter(data -> data.length > 4).map(data -> data.toUpperCase(Locale.US)).forEach(System.out::println);
-
Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array
- write a program to find next highest number for given number in an array ? int[] arr = {55, 66, 77, 78, 65, 33}; for input 33, output is 55
- write a program to find an element using binary search ?
- design patterns used in micro services?
- how to handle authentication and authorization in microservice?
- how to handle logs in microservice?
- how to handle transaction in microservice?
- annotation used in springboot?
- restcontroller vs controller?
- in springboot, how to provide ouput in both json and xml format?
- what is deadlock and how to handle it?
- what is lookup annotation?
- what is dependency injection?
- how to create 2 different session factory?
- what is cyclic barrier?
- what is map and reducer?
- what is flatmap?
- what is sharding?
- sql vs nosql
- saga pattern?
- 2phase commit?
- count a character question?
- CQRS?
- Rest vs Restfull service.
- Thread lifecycle states?
- How to connect 2 different database in spring?
- What is profiler in spring ?
- When to use comparator vs comparable?
- Print even and odd numbers from 2 threads? One should print even other should print odd alternatively till 10.
- Serialization/Externalization? What is the significant of version id?
- What is String intern?
- diff countdown latch vs cyclic barrier vs phaser?
- fatory design pattern vs abstract factory pattern?
- can we have a private field in interface? No, All the fields are public, static and final in interface. Fields in interface are accessible by interface or class not using object. if a class implements 2 interfaces which are having same field name will have issue only if we access and use the field. if a class implements 2 interfaces which are having same method name will have issue, it will be solved by overriding the method in subclass.
-
How to disable autoconfiguration ? Ans:- spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
-
How to optimize Spring boot? Use lazy bean initialization using @Lazy annotation. Disable unwanted autoconfiguration. Profile specific configuration. Limit component scanning using @scanBasePackages annotation.
STAR Questions:-
- Tell me about when you missed a deadline?
- Tell me about a time you have disagreed with a senior member of staff?