I applied in-person. The process took 1 day. I interviewed at Barclays
Interview
Good experience
Find the Interview Question, Will help in preparation :
Oops :
1. Principles of oops : Looking for 'SOLID' principals with examples.Not expecting general answer encapsulation,
abstraction, inhertience
2. Clear distinction between : Encapsulation, Abstraction, data hiding with an example
3. Employee(name, id, salary) & Salary(basic, hra...). Wanna write a getMonthlySalary.
Where will u write getMonthlySalary.
Expected answer is write a method genrateMonthlySalary to calculate monthly-salary in Salary class & call it in
Employee's getMonthlySalary. By doing this concerns are seprated(S of 'Solid')
4.
main (){
List l = new ArrayList();
l.add("A")
meth(l)
sop(l)
}
meth(List l){
l = new ArrayList(); //Line x
l.add("B")
}
A. Wat wil sop print
B. what if Line x is removed
5.
class A {
A meth(){
}
}
class B extends A{
B meth(){
}
}
will it compile?
How to make it generic
class A<T> {
T meth(){
}
} .. changes to be made in class B
Spring :
6. What is IOC, DI. In other example of IOC other than DI
7. What will u achive by DI instead of creating object directly
8. Did u read Clean code book or folow any blog
Hibernate :
9. Employee & Address class
a. Tell wat wld be step to use to persist this using hibernate
b. Transcation mgtmt
c. 2 table need to be created in diffrent databases, how to achive transcation.
Expected answer : Distributed transcation - use JTA
Technical interview with focus on SOLID principles and design patterns. Asked to write a code to sort an array using couple of algorithms and explain time and space complexity. Explain different data attributes to store data
I applied online. I interviewed at Barclays (Noida)
Interview
Interview process involves multiple rounds over 3 to 4 weeks or may take even longer. The process moves a bit slow so you need to be patient during the process but do keep following up.
Interview questions [1]
Question 1
Asked about experience in previous company, roles and responsibilities
It was 1 hour round with more focus on skills, experience; specially core java and managerial type questions. Interviewer was more interested in leetcode type problem and solution. It was like some exam, not a two way discussion.