Candidatei-me por meio de uma faculdade ou universidade. Fui entrevistado pela Infosys (Pune) em ago. de 2022
Entrevista
1. What is Java? Why is it platform-independent?
Java runs on JVM → bytecode → machine code → so it works on any OS.
2. Difference between JDK, JRE, and JVM
JDK → development kit
JRE → runtime environment
JVM → executes bytecode
3. OOPS Concepts (Infosys always asks)
Encapsulation
Inheritance
Polymorphism
Abstraction
4. Difference between Overloading and Overriding
Overloading – compile time, same method name, different params.
Overriding – runtime, same signature in subclass.
5. What is this keyword?
Refers to current object.
6. What is super keyword?
Refers to parent class.
7. What is constructor? Types?
Default
Parameterized
Used to initialize objects.
8. Difference between abstract class and interface
Abstract → can have concrete + abstract methods
Interface → only abstract methods (Java 8 allows default/static)
9. Can Java support multiple inheritance
10. What is String pool?
Area in heap memory that stores unique string literals.
11. Difference between String, StringBuilder, StringBuffer
String → immutable
StringBuilder → mutable, not thread-safe
StringBuffer → mutable, thread-safe
12. What is exception handling?
try, catch, finally, throw, throws
13. Checked vs Unchecked Exceptions
Checked → compile time (IOException)
Unchecked → runtime (ArithmeticException)
14. Collections vs Arrays
Collections grow dynamically, array has fixed length.
15. Difference between List, Set, Map
List → ordered, duplicates allowed
Set → unique, no duplicates
Map → key-value pairs
16. HashMap vs Hashtable
HashMap → not synchronized, faster
Hashtable → synchronized, slower
17. What is a Thread? How to create?
Extend Thread OR implement Runnable.
18. What is synchronization
Candidatei-me online. Fiz uma entrevista na empresa Infosys.
Entrevista
The interview process was good and I even got mail asking for availability for face to face round.This continued for about 3 weeks each time asking for availability even though I stated I was available and then I decided to check their portal which stated I was rejected in F2F even though they didnt conduct the second round of interview
Perguntas de entrevista [1]
Pergunta 1
Spring/Java related basics and stuff related to whats in my resume
I applied for a position through Naukri and received an email for a virtual interview. The interview was scheduled almost one week after I submitted my application. The first round was a technical round, where my practical knowledge and skills were evaluated. After clearing that, I had the second round which was the managerial round, focused more on problem-solving approach, communication, and team fit.
Perguntas de entrevista [1]
Pergunta 1
What is the difference between @Component, @Service, and @Repository in Spring Boot?
Why do we need separate stereotypes if they all behave similarly for component scanning?
2. How does Spring handle dependency injection?
Explain constructor injection vs setter injection and which one is recommended and why.
3. What is the difference between EntityManager and Hibernate Session?
When would you use one over the other?
4. How does Spring Boot auto-configuration work?
Explain the role of spring.factories and @EnableAutoConfiguration.
5. Explain the lifecycle of a Spring Bean.
What are @PostConstruct and @PreDestroy, and when would you use them?