🕑 JAVA Interview Guide 🕑
Core Java
o How can we create immutable class if there is some mutable object in class?
o How can create immutable class?
o What are HashMap and how does it work internally.
o What is the difference b/w HashMap and Concurrent HashMap?
o What is the difference b/w Array list and Concurrent LinkedList?
o Can we override private, static, final methods?
o What is static method and why it cannot be overridden?
o Can we overload private, final, static methods?
o Explain serialization and deserialization?
o What is difference between process and thread?
o What is difference between sleep () and wait ()?
o Difference between Comparator and Comparable?
o Difference between final, finally and finalize?
o What are the different types of Garbage collectors?
o Difference between abstract class and interface?
o What is Java 8 features?
o What is flat Map () method does in stream?
o What does reduce () method does in stream?
o Why are lambdas expression used in Java 8?
o Logical question on string.
Concurrency, multithreading, and advance topic
o What is difference between notify () and notify All ()?
o What are different states of thread?
o What is thread pool?
o What is synchronized block?
o Difference between volatile and transient?
o How many ways can we create thread in java?
o Is it important to acquire object lock before calling wait (), notify () and notify All ()?
o Difference between collection and streams?
o What are terminal operations in stream?
o collection framework
o what is the difference between all collection framework?
o How we can implement multithreading, and can u please explain methods in thread.
o Basic and advance collection internals.
Design Pattern
o How can we create Singleton class and factory class?
o Singleton design pattern with and without safe?
🕑 JAVA Interview Guide 🕑
o Gang of four design pattern.
o What is marker interface and why do we use it?
o What is serialization interface and why do we use it?
o What is use of serialization interface in singleton design pattern?
o Explain about SOLID principle.
Hibernate and spring boot framework
o what is the different annotation in hibernate and what are their use?
o What is the caching in hibernate?
o Difference between get and load method in hibernate?
o How can we create composite key in hibernate?
o What is session object and session factory object?
o Explain all the annotation in spring?
o How many ways we can create spring bean object?
o What is the XML file in spring and hibernate?
o What is scope in Spring?
SQL
o Normalisation in database.
o all types of join in SQL.
o 2nd highest salary of employee SQL query.
o nth highest salary of employee sql query.
o difference between ddl, dml, dcl commands.
o difference between delete and truncate.
o Some of the question in data structure and algorithm.
o Also, can u also tell me what the time and space complexity would be.
KAFKA
o what is the difference between topic and queue?
o Messaging.
o Kafka configuration, EDA, Durability, choreography, command model.
Mandatory Topic to cover
Standard lib(Jackson, JIB, etc)
Adv libraries (RX Java, VAVAR, Tink, ANtlr4, Metrics, etc)
Profiler, finalize, garbage collection basics, JVM Configuration
GC Dump Analysis,GC algos, concurrent/ parallel/full/partial GC
🕑 JAVA Interview Guide 🕑
Database RDBMS/No SQL (SQL, Joins, Indexing), JPA
Data Modelling, Database Isolations, Shading, CDC
Generics, Lambda expr, Functional Interface, streams , predicate, Bi-predicate
Completable future, optional, Parallel ,Serial Stream, Lazy streams
Multithreading: ReentrantLock,Fork & Join, Sync, Executor Framework
Blocking Queue, Latch, Barrier , Thread local
Cloud & Microservices Section – Good to have
API Gateway or ESB usage
ADV implementation and configurations or knowing both technologies
FEFB: Business process orchestration ( GraphQl /Appsync/ Apollo/DGS)
Schema federation/Stitching, directives, State management, caching
Rest principles, Imp(Spring boot or similar), best practices, OAS consumer , versioning ,
paging
Adv Rest Principles, Tooling, OAS producer, Service granularity & Business Process
Streaming Solution , Pipeline examples (data Processing tech)
Event sourcing & Event Store, Replay , Data integrity and Metallized view
Caching: (Elastic search/Redis), read heavy traffic
Scaling enterprise systems and batching
Standard MS patterns (Netflix suite/Service Mesh), local Transactions , domain models
Aggregates & persistence, complex transaction scenarios, CAP
API Security Basic Auth, Client Credential, JWT usage, JJWT lib
AUTH code Flow, Open IDC, IAM integration, key cloak
Cloud Solution, Hosted services vs Market place vs Open source option Multi region ,Data
replication and hybrid solution. Discuss above
Cloud managed Services : Serverless , storage services, events
Cloud based complex application with end to end ecosystem.
🕑 JAVA Interview Guide 🕑
Solution & Tooling Section
Build and automation:, Build, Quality plugins, Jenkins, Docker
Advance docker and Kubernetes ,Terraform/ARM , Networking
NFR (Data at REST / Motion / In use)
Multi-tenant , multi geography/Brand, Scale, GDPR compliance
Production support: Bug fixing ,server side troubleshooting and source control management
Archiving ,Rollbacks & Release(canary/blue green), Feature -multi region
Architectural Viewpoints, Technology Selection to be discussed for a use case
leadership on owning decisions, Setting up architectural Principles & Core foundation
Execute Application end to end(IC & Adv POC/Certification)
Requirement gathering, Estimate (Track level), Lead & Mentor
Logical views, sequence views , Application Layering
BCD, SCD, Technology and solution detailing, End to End view
Log export and Monitoring(exporting and usage of log tools.
Tool Configuration & Setup ( ELK ,Jaeger,Kiali, Prometheus,Grafana,JDWP,COTS)