Interview Questions of java
Interview Questions of java
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
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,
Trigger in sql??
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?
aclara
===============================
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?