.
Cheat Sheets
🔹 Java Cheat Sheet (Core Concepts)
● OOPs Principles:
○ Encapsulation → Hiding data with getters/setters.
○ Inheritance → Parent-child class reuse.
○ Polymorphism → Compile-time (overloading), Runtime (overriding).
○ Abstraction → Abstract classes & Interfaces.
● Collections Framework:
○
List→ ArrayList, LinkedList.
○
Set→ HashSet, TreeSet.
○
Map→ HashMap, TreeMap.
○ Iterators & Streams API.
● Exception Handling:
○ Checked vs Unchecked.
○
try-catch-finally throw
, throws
, .
● Multithreading Basics:
○ Thread class, Runnable interface.
○
synchronizedkeyword.
○ Executors & Thread pools.
● Important Keywords:
○
final static
, transient
, volatile
, .
🔹 SQL Cheat Sheet
Joins:
SELECT [Link], [Link]
FROM Employees e
INNER JOIN Departments d ON e.dept_id = [Link];
● Types: INNER, LEFT, RIGHT, FULL.
● A
ggregate Functions:
COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING
.
Subqueries:
SELECT name FROM Employees
WHERE salary > (SELECT AVG(salary) FROM Employees);
●
● Indexes:Improve performance but slow down inserts.
Transactions:
BEGIN;
UPDATE accounts SET balance = balance - 500 WHERE id=1;
UPDATE accounts SET balance = balance + 500 WHERE id=2;
COMMIT;
●
🔹 Banking Terms Cheat Sheet
● CBS (Core Banking System):Centralized system forall banking operations.
● E
OD/BOD Jobs:End-of-Day / Beginning-of-Day batchjobs for reconciliation &
settlements.
● Reconciliation:Matching financial records (e.g.,payments vs account balances).
● KYC (Know Your Customer):Verification of customeridentity.
● AML (Anti-Money Laundering):Regulations to preventillegal transactions.
● RTGS/NEFT/IMPS:Real-time and batch payment systems.
● SWIFT:Global messaging network for internationalpayments.
● Basel III:Banking risk & capital regulation.
● Digital Banking:Internet banking, wallets, APIs,Open Banking.
📝 2. Interview Q&A
🔹 Technical Questions
1.Explain OOPs concepts with banking examples.
Q
👉 Inheritance:SavingsAccount extends Account.
👉 Polymorphism:Different loan types (HomeLoan,CarLoan) overriding interest calculation.
👉 Encapsulation:Customer details hidden with getters/setters.
👉 Paymentimplementedby
Abstraction:Abstract class UPI NEFT
, .
Q2.How would you optimize a slow SQL query?
● Use proper indexes.
SELECT *
● Avoid .
● Use joins instead of subqueries where possible.
● Check execution plan.
● Partition large tables.
Q3.What happens if an EOD batch fails?
● Identify failure point via logs.
● Rollback incomplete transactions.
● Communicate with stakeholders (Ops/Compliance).
● Rerun the job or trigger manual intervention.
● Document root cause & implement monitoring.
Q4.Difference between HashMap and ConcurrentHashMap in Java?
● HashMap → Not thread-safe.
● ConcurrentHashMap → Thread-safe, uses segmentation for concurrency.
Q5.How would you design an API for Loan Origination?
POST /loan/apply
● Expose endpoints: GET /loan/status/{id}
, POST
,
/loan/approve
.
● Security: OAuth2/JWT.
● Validation: Ensure KYC, credit score checks.
● Idempotency for requests (avoid duplicate loan creation).
🔹 Scenario-Based Questions
1.A critical batch job failed during EOD, delayingpayments. How do you handle it?
Q
👉 Approach: Incident triage → Logs → Rollback → Communicate with stakeholders → Fix
→ Prevent recurrence.
2.Client asks for a new regulatory report within2 days. What do you do?
Q
👉 Approach: Gather exact requirements → Estimate impact → Prioritize tasks → Leverage
existing reporting framework → Deliver MVP report → Continuous enhancements.
3.You are leading a team and a junior developerintroduces a bug in production. How do
Q
you manage?
👉 Approach: Fix issue immediately → Conduct RCA → Mentor junior → Introduce peer
reviews & automation.
4.How would you migrate a CBS from on-prem to cloud?
Q
👉 Approach: Assessment → Data migration strategy → Security/compliance alignment →
Phased migration → UAT & rollout → Monitor performance.
5.During sprint planning, you find client requirementsare unclear. What do you do?
Q
👉 Approach: Raise as blocker → Conduct clarification session with BA/client → Document
assumptions → Adjust estimation after clarification.