Senior Developer Java Interview Questions

5,290 senior developer java interview questions shared by candidates

write a program for give taks using in AI 1. Build a small functional app showing integration between backend, AI logic, and optionally frontend/dashboard. 2. Use an AI code assistant (mandatory) like Copilot or Cursor — and maintain a log of prompts, AI suggestions, and your actions. 3. Implement simple AI logic (simulation) — e.g., categorize incidents, suggest severity, or generate summaries (no real ML model needed). 4. Include data storage (DB + CRUD) for the events/incidents and AI-generated insights. 5. Choose one flexible module — either a Backend API or a Frontend Dashboard. 6. Show good design & architecture — modular code, proper API flow, clean database structure. 7. Write a clear README — setup steps, design decisions, AI usage log, prompt strategy, assumptions, and future improvements. 8. Demonstrate prompt engineering skills — how effectively you guided the AI, refined responses, and used templates/rules (conceptually). 9. Focus on clarity and functionality — working, readable, and well-documented code matters more than perfection. second round : tell me about projects in brifly with explaination. mostly situation base quetions.(if this hapens and what you will do) do you know deployement. how can you do cicd pipline.( ci-cd.yml) how can you do docker containarization.(dockerfile) how can you use kubernets and rate limiter .(k8s.yml) if one instance is going to failler and then what happens and what will you do ? how whould know which service is going to be down ?

sr java developer

Interviewed at Motadata

3.8
Oct 13, 2025

write a program for give taks using in AI 1. Build a small functional app showing integration between backend, AI logic, and optionally frontend/dashboard. 2. Use an AI code assistant (mandatory) like Copilot or Cursor — and maintain a log of prompts, AI suggestions, and your actions. 3. Implement simple AI logic (simulation) — e.g., categorize incidents, suggest severity, or generate summaries (no real ML model needed). 4. Include data storage (DB + CRUD) for the events/incidents and AI-generated insights. 5. Choose one flexible module — either a Backend API or a Frontend Dashboard. 6. Show good design & architecture — modular code, proper API flow, clean database structure. 7. Write a clear README — setup steps, design decisions, AI usage log, prompt strategy, assumptions, and future improvements. 8. Demonstrate prompt engineering skills — how effectively you guided the AI, refined responses, and used templates/rules (conceptually). 9. Focus on clarity and functionality — working, readable, and well-documented code matters more than perfection. second round : tell me about projects in brifly with explaination. mostly situation base quetions.(if this hapens and what you will do) do you know deployement. how can you do cicd pipline.( ci-cd.yml) how can you do docker containarization.(dockerfile) how can you use kubernets and rate limiter .(k8s.yml) if one instance is going to failler and then what happens and what will you do ? how whould know which service is going to be down ?

1 - There are 3 classes A, B, C. B extends A, C extends B. There is a mixed collection, containing objects from the 3 classes. Write code/pseudo code for removing only the instances of class B. 2 - try-catch-finally question. 3 - interface vs abstract class 4 - to inspect a code with Strings and StringBuilder objects 5 - how many instances of a servlet are there in memory? Are its member vars thread-safe? Pattern? 6 - diff cookies vs URL rewriting for session management 7 - something about jsps and their scope (do not remember well) 8 - a piece of c*appy code to be refactored.
avatar

Senior Java Developer

Interviewed at Accenture

3.7
Jun 2, 2020

1 - There are 3 classes A, B, C. B extends A, C extends B. There is a mixed collection, containing objects from the 3 classes. Write code/pseudo code for removing only the instances of class B. 2 - try-catch-finally question. 3 - interface vs abstract class 4 - to inspect a code with Strings and StringBuilder objects 5 - how many instances of a servlet are there in memory? Are its member vars thread-safe? Pattern? 6 - diff cookies vs URL rewriting for session management 7 - something about jsps and their scope (do not remember well) 8 - a piece of c*appy code to be refactored.

Viewing 1471 - 1480 interview questions

Glassdoor has 5,290 interview questions and reports from Senior developer java interviews. Prepare for your interview. Get hired. Love your job.