TIAA Interview Experience -Java Back Backend Developer (3+ years Experience)

Round 1:  I was interviewed on Week Days, so there was no company presentation and written test, i was there for round 1 F2F interview,  

Q1. The very first question was tell me about  “FrameTech” which you use in you current project, i was initially confused with the term “FrameTech”, he meant the Frameworks and Technology used in current project.

Q2. What do you know about Exceptions in java, How do we create user-defined checked and Unchecked Exceptions, if you are designing your own framework which user-defined exception(checked/unchecked) you implement.

Q3. Why in String immutable?, How will you design your own immutable class?

Q4. How does hasCode() works, How HashMap works internally, when using user-defined class object as a key in HashMap what care you need to take?

Q4. Write code to print Prime numbers in the given range, after writing the code he was more interested efficiency and optimization.

Q5. Write code to find whether given String str1 is present in String2

Q6. What are annotations available in Spring, What are bean scopes available in Spring, what if we have scenario

like Class A {
class B ; //composition is used
}

if beans of Class A are of scope “Singleton” and beans of class B are of “Prototype” scope, then how may references will be returned and what will he the out-put of below statement

A obj1 = context.getBean(A.class);
A Obj2 = context.getBean(A.class)
sysout(obj1 == obj2) ; // True OR False ?

Q7. Why string are immutable? how will you make your own class immutable? what care you need to take if your class contains reference of other class?

Q8. Method Overriding with Exception Handling,

Ex – Class Parent{

public void m1() Throws Exception{

//m1
}
}

Class Child extends Parent{
public void m1() {
}
}

He asked me, how will you handle the exception for overridden method?

Q9. class A{
public void m1(){ sop(“inside m1 of A); }
}

class B{
public void m1(){ sop(“inside m1 of B); }
main(){
A obj = new B();
obj.m1(); // which method will be called?
}
}

These were the questions i was asked, i was able to answer most of them, but they were looking for somebody who have worked on Spring live project, so i was asked to leave for the day.Hope this experience will help you Guys, Thank You.

Write your Interview Experience or mail it to contribute@geeksforgeeks.org



My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.