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

Java Architect Interview Questions Guide

Java interview questions for campus

Uploaded by

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

Java Architect Interview Questions Guide

Java interview questions for campus

Uploaded by

sandeepjava1985
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Write Reverse a String in java


2. Write to check given String is Palindrome or not
3. Write a Program to Factorial of Given Number
4. Write a Program to sum of all even numbers in given list
5. Write a Program to count in list which having length less than 5
6. FInd Max number in given List of values
7. Fibonacci series program
8. Find sum of given number “sai1234idi3432klfjdskf”
9. Find number repeat in given number 234 in 23423454323453
10. Most repeat name in given list of strings
11. Remove * in given name with previous character “Java**ja**va”
12. Java 8 Stream and Parallel Stream Difference
13. Java 8 Map and Flat Map Difference
14. What is reduce()
15. How you Monitor your Microservices
a. Promiotos and Grafana
b. ELK
i. Elastic Search
ii. Logstash
iii. Kibana
c. Nagio
16. What are HTTP Methods
a. POST - for create
b. GET - for Get
c. PUT - For Update
d. PATCH - For partial update
e. DELETE - delete
17. What is Idempotency in HTTP methods
18. REST will support multiple formats like xml, Json.
19. Are REST Stateless ? Yes, client will send required info to perform business operation,
So server will not handle state
20. What are Engineering thing you will do
21. What are the design patterns you are followed in microservices
22. What are the best practices for code review
23. What are code smells and Vulnerabilities
24. What are the exceptions are you faced in Spring Framework
25. Angular Observables and HttpClient
26. n-1 problem in Hibernate
27. What are the step you follow while developing REST API or Best Practices
a. Planning
i. Requirement Discussion
b. Design
i. Resource Modeling(URL Name)
ii. API Definition (HTTP POST, GET etc…)
iii. Define Request and Response Payload
iv. Response Codes
c. Develop
i. Security - authentication and authorisation
ii. Cacheable Response
iii. Implementing Business Logic
d.
28. 7 principles in Rest API
a. Client-Server Decoupling
b. Statelessness
c. Uniform Interface
i. HTTP Methods
ii. Resource in URL
iii. Media Type for Request and Response (Json, XML)
d. Cacheable
i. Response should be cacheable, to improve Performance for repeated
queries.
e. Layered System
i. The architecture should allow intermediate servers like loadbalancer and
Gateway before reaching actual servers.

29. 12 Principles in Microservices


a. Microservie should have single responsibility for module
b. Menas it should contain only one module changes
c. Microservice should provide API communication between another microservices
by Event bus
d. Microservice should have its own data base
e. Micoservice should provide microservices design patterns
f. Microservice should horizontally scalable indidpendly
g. Security
h. Monitor and logs
i. Use Cacheble if required
30.

You might also like