Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick

Compare button icon Compare button icon Compare
3.7

based on 36.6k Reviews

Filter interviews by

Infosys Fullstack Java Application Developer Interview Questions and Answers

Updated 27 Apr 2023

Infosys Fullstack Java Application Developer Interview Experiences

1 interview found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I was interviewed in Mar 2023.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. How to add dependency
  • Ans. 

    To add a dependency, you need to specify it in the project's build file.

    • Open the build file (pom.xml for Maven or build.gradle for Gradle)

    • Add the dependency in the appropriate section

    • Save the file and run the build command to download and install the dependency

    • Example: com.example example-library 1.0.0

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. It asked mr about scenario based question

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
2-4 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.

Round 1 - One-on-one 

(3 Questions)

  • Q1. Java overloading overriding differences
  • Ans. 

    Overloading is having multiple methods with the same name but different parameters, while overriding is implementing a method in a subclass with the same signature as in the superclass.

    • Overloading allows different methods to have the same name but different parameters.

    • Overriding involves implementing a method in a subclass with the same signature as in the superclass.

    • Overloading is determined at compile time based on t...

  • Answered by AI
  • Q2. Angular decorators
  • Q3. Angular services

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Feb 2023. There was 1 interview round.

Round 1 - Technical 

(21 Questions)

  • Q1. Types of cloning in java
  • Ans. 

    There are two types of cloning in Java: Shallow and Deep cloning.

    • Shallow cloning creates a new object with the same field values as the original object, but the fields refer to the same objects as the original object.

    • Deep cloning creates a new object with the same field values as the original object, but the fields refer to new copies of the original objects.

    • Shallow cloning can be done using the clone() method, while d...

  • Answered by AI
  • Q2. What are idempotent methods in rest
  • Ans. 

    Idempotent methods in REST are HTTP methods that can be repeated multiple times without changing the result beyond the initial application.

    • Idempotent methods are safe to retry or repeat without causing unintended side effects.

    • GET, HEAD, PUT, and DELETE are idempotent methods.

    • POST is not idempotent because it creates a new resource with a new URI each time it is called.

    • Idempotency is important for ensuring the reliabili

  • Answered by AI
  • Q3. Difference between put and post
  • Ans. 

    PUT is used to update an existing resource, while POST is used to create a new resource.

    • PUT replaces the entire resource with the new data, while POST appends the new data to the existing resource.

    • PUT is idempotent, meaning multiple identical requests will have the same effect as a single request, while POST is not.

    • PUT requires the client to specify the resource ID in the request URL, while POST does not.

    • Example: PUT /...

  • Answered by AI
  • Q4. Describe caching mechanism in hibernate
  • Ans. 

    Hibernate provides two levels of caching: first-level cache and second-level cache.

    • First-level cache is enabled by default and is associated with a Session object.

    • Second-level cache is optional and can be configured to use different caching providers like Ehcache, Hazelcast, etc.

    • Caching can improve application performance by reducing the number of database queries.

    • Caching can also cause data inconsistency issues if not...

  • Answered by AI
  • Q5. Association between hashcode and equals to method
  • Ans. 

    Hashcode and equals method are related in Java to ensure proper object comparison and hashing.

    • The hashcode method returns an integer value that represents the object's unique identifier.

    • The equals method compares two objects for equality and returns a boolean value.

    • If two objects are equal, their hashcodes must be equal as well.

    • If two objects have the same hashcode, it does not necessarily mean they are equal.

    • It is imp...

  • Answered by AI
  • Q6. What is the logging framework you used and errors it highlights
  • Q7. Write a program to get duplicate element in array list
  • Ans. 

    Program to find duplicate elements in an array list

    • Create a HashSet to store unique elements

    • Loop through the array list and add each element to the HashSet

    • If an element already exists in the HashSet, it is a duplicate

    • Add the duplicate element to another list or print it

  • Answered by AI
  • Q8. Describe cascading in hibernate
  • Ans. 

    Cascading in Hibernate refers to the ability to propagate the state of an entity to its associated entities.

    • Cascading is used to automatically persist, update, or delete associated entities when the state of the parent entity changes.

    • There are different types of cascading options available in Hibernate, such as ALL, PERSIST, MERGE, REMOVE, and REFRESH.

    • For example, if a parent entity has a collection of child entities a...

  • Answered by AI
  • Q9. Difference between get session and load in hibernate
  • Ans. 

    getSession() retrieves the current session while load() method loads the object by its identifier.

    • getSession() method is used to retrieve the current session from the session factory.

    • load() method is used to load the object by its identifier.

    • getSession() method returns null if there is no current session.

    • load() method throws an exception if the object is not found in the database.

    • getSession() method is used for read an...

  • Answered by AI
  • Q10. What is hql? what are it's benefits?
  • Ans. 

    HQL stands for Hibernate Query Language. It is an object-oriented query language used to retrieve data from a database.

    • HQL is similar to SQL but uses object-oriented concepts like inheritance, polymorphism, and association.

    • It is database independent and can be used with any database supported by Hibernate.

    • HQL queries are compiled to SQL queries at runtime, which makes it more efficient than using SQL directly.

    • It suppor...

  • Answered by AI
  • Q11. How to do xml validation
  • Ans. 

    XML validation can be done using XML Schema Definition (XSD) or Document Type Definition (DTD).

    • XSD is the preferred method for XML validation as it provides more features and is easier to use.

    • DTD is an older method and has limited features compared to XSD.

    • XML validation can be done using tools like XMLSpy, Notepad++, and online validators like W3C Markup Validation Service.

    • Validation can be done programmatically using ...

  • Answered by AI
  • Q12. What are methods of object class
  • Ans. 

    Methods of Object class in Java

    • toString() - returns a string representation of the object

    • equals(Object obj) - checks if two objects are equal

    • hashCode() - returns a hash code value for the object

    • getClass() - returns the runtime class of the object

    • wait() - causes the current thread to wait

    • notify() - wakes up a single thread that is waiting on the object

    • notifyAll() - wakes up all threads that are waiting on the object

  • Answered by AI
  • Q13. How to secure rest api
  • Ans. 

    Secure REST API using authentication, encryption, and authorization.

    • Use HTTPS protocol to encrypt data in transit

    • Implement authentication using tokens or OAuth2

    • Implement authorization using roles and permissions

    • Use input validation and output encoding to prevent injection attacks

    • Implement rate limiting to prevent DDoS attacks

  • Answered by AI
  • Q14. Which authentication methods used to secure rest api
  • Ans. 

    Various authentication methods can be used to secure REST API, including OAuth, JWT, Basic Authentication, and API Keys.

    • OAuth is a popular authentication method that allows users to grant access to third-party applications without sharing their credentials.

    • JWT (JSON Web Tokens) is a stateless authentication mechanism that uses a token to authenticate users.

    • Basic Authentication uses a username and password to authentica...

  • Answered by AI
  • Q15. How do we handle exceptions in rest
  • Ans. 

    Exceptions in REST are handled using try-catch blocks and HTTP status codes.

    • Use try-catch blocks to catch exceptions thrown by the application

    • Map exceptions to appropriate HTTP status codes

    • Return error messages in the response body

    • Use global exception handlers to handle uncaught exceptions

    • Avoid returning sensitive information in error messages

  • Answered by AI
  • Q16. Which data structure used in array and hashmap
  • Ans. 

    Arrays use a linear data structure while HashMap uses a key-value pair data structure.

    • Arrays are indexed collections of elements of the same data type.

    • HashMaps store key-value pairs and allow for fast retrieval of values based on their keys.

    • Arrays have a fixed size while HashMaps can dynamically resize.

    • Arrays are more efficient for simple data structures while HashMaps are better for complex data structures.

  • Answered by AI
  • Q17. What is sql injection
  • Ans. 

    SQL injection is a type of cyber attack where malicious SQL statements are inserted into an entry field to manipulate the database.

    • SQL injection can be used to steal sensitive information, modify or delete data, or even take control of the entire database.

    • It can be prevented by using parameterized queries, input validation, and limiting user privileges.

    • Example: Entering ' OR 1=1;--' in a login form can bypass authentic...

  • Answered by AI
  • Q18. What is synchronized key word
  • Ans. 

    Synchronized keyword is used to control access to shared resources in a multithreaded environment.

    • It ensures that only one thread can access the shared resource at a time.

    • It can be applied to methods or blocks of code.

    • It can cause performance issues if used excessively.

    • Example: synchronized void myMethod() { //code }

    • Example: synchronized(this) { //code }

  • Answered by AI
  • Q19. Difference between string and string buffer
  • Ans. 

    String is immutable while StringBuffer is mutable.

    • StringBuffer is faster for concatenation operations.

    • StringBuffer has methods to modify the string while String does not.

    • StringBuffer is thread-safe while String is not.

    • Example: String str = "hello"; StringBuffer sb = new StringBuffer(str); sb.append(" world");

    • Example: String str = "hello"; str.concat(" world"); // returns a new string, original string is not modified.

  • Answered by AI
  • Q20. Design patterns in java
  • Ans. 

    Design patterns are reusable solutions to common software problems.

    • Design patterns help in creating flexible, reusable, and maintainable code.

    • Some popular design patterns in Java are Singleton, Factory, Observer, and Decorator.

    • Singleton pattern ensures that only one instance of a class is created.

    • Factory pattern provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objec...

  • Answered by AI
  • Q21. Describe reflection api in java
  • Ans. 

    Reflection API in Java allows inspection and modification of runtime behavior of a program.

    • Reflection API provides classes like Class, Method, Field, Constructor, etc. to inspect and modify the behavior of a program at runtime.

    • It can be used to access private fields and methods of a class.

    • It can be used to create new instances of a class dynamically.

    • It can be used to invoke methods of a class dynamically.

    • It can be used...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Mainly they are looking for experienced spring boot developers. Be sure to have knowledge of all things mentioned in your resume.

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I applied via LinkedIn

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Assignment 

Coding is little difficult so please go through logic

Round 3 - Technical 

(2 Questions)

  • Q1. The interview is based on the skills you mentioned in resume
  • Q2. What is the use of Java
  • Ans. 

    Java is a versatile programming language used for developing a wide range of applications, from web and mobile apps to enterprise systems.

    • Java is used for developing web applications, mobile applications, desktop applications, and enterprise systems.

    • It is commonly used in backend development for server-side programming.

    • Java is also used in game development, scientific applications, and big data processing.

    • It is platfor...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Atos is the only company where many freshers are forced to resign as they don't have projects

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Don’t add your photo or details such as gender, age, and address in your resume. These details do not add any value.
View all tips
Round 2 - One-on-one 

(2 Questions)

  • Q1. About company and your skills
  • Q2. Java full stack developet
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Campus Placement

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Properly align and format text in your resume. A recruiter will have to spend more time reading poorly aligned text, leading to high chances of rejection.
View all tips
Round 2 - Aptitude Test 

Normal Gaming Question and Aptitude

Round 3 - HR 

(2 Questions)

  • Q1. Introduce yourself. Tell me Something about your Project.
  • Q2. Technical Question from Java.

Interview Preparation Tips

Interview preparation tips for other job seekers - Make a Few Projects and Learn at least 1 programming Language.
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Walk-in and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Coding Test 

Def factorial_iterative(n):
result = 1
for i in range(1, n + 1):
result *= i
return result

Interview Preparation Tips

Interview preparation tips for other job seekers - Working on personal projects can showcase your skills and initiative, especially if you’re pivoting to a new field.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Tell me about internal working of JVM
  • Q2. Tell me about SAGA pattern in Microservices
  • Ans. 

    SAGA pattern is a design pattern used in microservices architecture to manage distributed transactions.

    • SAGA pattern breaks down a long-running transaction into a series of smaller, independent transactions.

    • Each step in the SAGA pattern is a separate service that communicates with other services through events.

    • If a step fails, compensating transactions are executed to rollback the changes made by previous steps.

    • Example:...

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. Tell me about your current project structure
  • Q2. What is an API , how would you secure an API
  • Ans. 

    API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.

    • API is a set of rules and protocols that allows different software applications to communicate with each other.

    • To secure an API, you can use authentication methods like OAuth, API keys, or JWT tokens.

    • Implementing encryption (HTTPS) and rate limiting can also enhance API secu...

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Why do you want to relocate to Bangalore
  • Q2. Tell me about one instance where you faced pressure and how did you overcome ?

Interview Preparation Tips

Interview preparation tips for other job seekers - You can assume easy to medium level questions.
Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Basic js question on hoisting, closure, promises
Round 2 - Behavioral 

(1 Question)

  • Q1. Basic resume based
Round 3 - HR 

(1 Question)

  • Q1. Salary discussion -- HR never responded
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(4 Questions)

  • Q1. Java Basic questions
  • Q2. SpringBoot Basic questions
  • Q3. Simple DSA problem: "introduction" find duplicate characters
  • Ans. 

    Find duplicate characters in a given array of strings

    • Iterate through each string in the array

    • For each string, iterate through each character and store the count in a hashmap

    • If the count of any character is greater than 1, it is a duplicate

  • Answered by AI
  • Q4. Write code for REST API using spring boot, include all annotation
  • Ans. 

    Code for REST API using Spring Boot with annotations

    • Use @RestController annotation to define the class as a REST controller

    • Use @RequestMapping annotation to map HTTP requests to handler methods

    • Use @GetMapping, @PostMapping, @PutMapping, @DeleteMapping annotations for specific HTTP methods

    • Use @PathVariable annotation to extract values from the URI

    • Use @RequestBody annotation to bind HTTP request body to a method paramete

  • Answered by AI

Skills evaluated in this interview

Infosys Interview FAQs

How many rounds are there in Infosys Fullstack Java Application Developer interview?
Infosys interview process usually has 3 rounds. The most common rounds in the Infosys interview process are Technical, HR and Resume Shortlist.
What are the top questions asked in Infosys Fullstack Java Application Developer interview?

Some of the top questions asked at the Infosys Fullstack Java Application Developer interview -

  1. how to add depende...read more
  2. it asked mr about scenario based quest...read more

Tell us how to improve this page.

Join Infosys Creating the next opportunity for people, businesses & communities

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.1k Interviews
Accenture Interview Questions
3.9
 • 7.8k Interviews
Wipro Interview Questions
3.7
 • 5.5k Interviews
Cognizant Interview Questions
3.8
 • 5.4k Interviews
Capgemini Interview Questions
3.8
 • 4.7k Interviews
Tech Mahindra Interview Questions
3.6
 • 3.7k Interviews
HCLTech Interview Questions
3.6
 • 3.6k Interviews
Genpact Interview Questions
3.9
 • 2.9k Interviews
LTIMindtree Interview Questions
3.9
 • 2.7k Interviews
IBM Interview Questions
4.1
 • 2.3k Interviews
View all
Infosys Fullstack Java Application Developer Salary
based on 4 salaries
₹4 L/yr - ₹5.5 L/yr
38% less than the average Fullstack Java Application Developer Salary in India
View more details
Technology Analyst
56.4k salaries
unlock blur

₹3 L/yr - ₹11 L/yr

Senior Systems Engineer
49.2k salaries
unlock blur

₹2.8 L/yr - ₹8 L/yr

System Engineer
38.7k salaries
unlock blur

₹2.5 L/yr - ₹5.3 L/yr

Technical Lead
30.6k salaries
unlock blur

₹5.2 L/yr - ₹19.4 L/yr

Senior Associate Consultant
26.9k salaries
unlock blur

₹6.2 L/yr - ₹16.8 L/yr

Explore more salaries
Compare Infosys with

TCS

3.7
Compare

Wipro

3.7
Compare

Cognizant

3.8
Compare

Accenture

3.9
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview