Filter interviews by
The __init__ method initializes an object's attributes when an instance of a class is created in Python.
__init__ is a special method in Python classes.
It is called automatically when a new object is created.
Used to set initial values for object attributes.
Example: def __init__(self, name): self.name = name
Allows for customization of object creation.
Snake and Ladder is a board game where players navigate a grid, climbing ladders and sliding down snakes to reach the finish.
Players take turns rolling a die to move their token on a numbered grid.
Landing on a ladder allows the player to climb up to a higher number.
Landing on a snake causes the player to slide down to a lower number.
The objective is to reach the last square, usually 100, before other players.
For e...
This code defines a simple class in Python to demonstrate object-oriented programming concepts.
Classes are blueprints for creating objects.
Use the 'class' keyword to define a class.
Attributes are variables that belong to the class.
Methods are functions defined within a class.
Example: class Dog: def bark(self): print('Woof!')
Program to find duplicate alphabets in a string
Create a HashMap to store the frequency of each alphabet
Iterate through the string and update the frequency in the HashMap
Iterate through the HashMap and print the alphabets with frequency greater than 1
A Java program to find vowels from a given string.
Create a string variable and initialize it with the given string.
Use a for loop to iterate through each character of the string.
Check if the character is a vowel using if statement and add it to a new string variable.
Print the new string variable containing all the vowels.
Inheritance in Java allows a class to inherit properties and methods from another class.
Use the 'extends' keyword to create a subclass that inherits from a superclass
The subclass can access all public and protected members of the superclass
Example: class Dog extends Animal { ... }
The 'super' keyword is used to call the superclass constructor or method
Controller in Spring is responsible for handling user requests and returning appropriate responses.
Controller receives requests from the client and delegates them to appropriate handlers
It maps the incoming requests to the corresponding handler methods
It returns the response to the client after processing the request
It can also handle exceptions and errors that occur during request processing
To configure server port in a Spring Boot app, modify the application.properties file.
Open the application.properties file
Add the following line: server.port=8080 (or any desired port number)
Save the file and restart the application
Find the lowest number from an arraylist using streams
Use stream.min() method to find the lowest number
Pass Comparator.naturalOrder() to get the lowest number
Handle empty list scenario using OptionalInt
Reverse a given string
Iterate through the string from end to start and append each character to a new string
Use StringBuilder or StringBuffer for better performance
Convert the string to a character array and swap the first and last characters, then move towards the middle until the entire string is reversed
I appeared for an interview in Nov 2024, where I was asked the following questions.
Snake and Ladder is a board game where players navigate a grid, climbing ladders and sliding down snakes to reach the finish.
Players take turns rolling a die to move their token on a numbered grid.
Landing on a ladder allows the player to climb up to a higher number.
Landing on a snake causes the player to slide down to a lower number.
The objective is to reach the last square, usually 100, before other players.
For exampl...
The __init__ method initializes an object's attributes when an instance of a class is created in Python.
__init__ is a special method in Python classes.
It is called automatically when a new object is created.
Used to set initial values for object attributes.
Example: def __init__(self, name): self.name = name
Allows for customization of object creation.
This code defines a simple class in Python to demonstrate object-oriented programming concepts.
Classes are blueprints for creating objects.
Use the 'class' keyword to define a class.
Attributes are variables that belong to the class.
Methods are functions defined within a class.
Example: class Dog: def bark(self): print('Woof!')
I applied via LinkedIn and was interviewed in Mar 2022. There were 3 interview rounds.
Reverse a given string
Iterate through the string from end to start and append each character to a new string
Use StringBuilder or StringBuffer for better performance
Convert the string to a character array and swap the first and last characters, then move towards the middle until the entire string is reversed
Program to find duplicate alphabets in a string
Create a HashMap to store the frequency of each alphabet
Iterate through the string and update the frequency in the HashMap
Iterate through the HashMap and print the alphabets with frequency greater than 1
A Java program to find vowels from a given string.
Create a string variable and initialize it with the given string.
Use a for loop to iterate through each character of the string.
Check if the character is a vowel using if statement and add it to a new string variable.
Print the new string variable containing all the vowels.
Abstract classes are incomplete classes that cannot be instantiated. Anonymous classes are unnamed classes that can be created on the fly.
Abstract classes are declared with the 'abstract' keyword and can have abstract and non-abstract methods.
Anonymous classes are created using the 'new' keyword and can extend a class or implement an interface.
Anonymous classes are often used for event handling and callbacks.
Example of...
Inheritance in Java allows a class to inherit properties and methods from another class.
Use the 'extends' keyword to create a subclass that inherits from a superclass
The subclass can access all public and protected members of the superclass
Example: class Dog extends Animal { ... }
The 'super' keyword is used to call the superclass constructor or method
Controller in Spring is responsible for handling user requests and returning appropriate responses.
Controller receives requests from the client and delegates them to appropriate handlers
It maps the incoming requests to the corresponding handler methods
It returns the response to the client after processing the request
It can also handle exceptions and errors that occur during request processing
To configure server port in a Spring Boot app, modify the application.properties file.
Open the application.properties file
Add the following line: server.port=8080 (or any desired port number)
Save the file and restart the application
Find the lowest number from an arraylist using streams
Use stream.min() method to find the lowest number
Pass Comparator.naturalOrder() to get the lowest number
Handle empty list scenario using OptionalInt
Developed a web-based inventory management system for a retail store
Used Java, Spring framework, and MySQL for backend development
Implemented user authentication and authorization using Spring Security
Designed the frontend using HTML, CSS, and JavaScript
Integrated barcode scanner for efficient inventory management
Conducted unit testing using JUnit and integration testing using Selenium
Deployed the application on AWS EC...
Refresh scope is used in Spring framework to control the lifecycle of beans.
Refresh scope is used to create a new instance of a bean every time it is requested.
It is useful when the state of a bean needs to be reset on every request.
To use refresh scope, add @RefreshScope annotation to the bean definition.
Example: @Bean @RefreshScope public MyBean myBean() { return new MyBean(); }
I applied via Walk-in and was interviewed in Jul 2021. There was 1 interview round.
The company is a leading innovator in technology solutions, focusing on enhancing user experience and operational efficiency.
Founded in 2010, the company has rapidly grown to become a market leader.
Offers a diverse range of products, including software, hardware, and cloud services.
Committed to sustainability, implementing eco-friendly practices in operations.
Recognized for exceptional customer service, receiving multi...
Top trending discussions
posted on 15 Dec 2021
I applied via Recruitment Consultant and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Job Portal and was interviewed in May 2021. There were 6 interview rounds.
I applied via Referral and was interviewed before Nov 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Apr 2021. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
based on 4 interview experiences
Difficulty level
Duration
based on 46 reviews
Rating in categories
Software Engineer
61
salaries
| ₹2.8 L/yr - ₹9.1 L/yr |
Softwaretest Engineer
20
salaries
| ₹2.6 L/yr - ₹5.6 L/yr |
Technical Support Engineer
11
salaries
| ₹3.6 L/yr - ₹9.2 L/yr |
Software Developer
9
salaries
| ₹2.5 L/yr - ₹5.7 L/yr |
Business Analyst
9
salaries
| ₹5.1 L/yr - ₹8.5 L/yr |
HCL Infosystems
Accel Frontline
Diverse Lynx
Pitney Bowes