Filter interviews by
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
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
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(); }
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.
Examp...
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(); }
Top trending discussions
I applied via Recruitment Consultant and was interviewed before Oct 2020. There were 3 interview rounds.
I appeared for an interview before Jun 2016.
I appeared for an interview before Aug 2016.
posted on 18 May 2021
I applied via Walk-in and was interviewed before May 2020. There were 4 interview rounds.
For loop is used for iterating over a range of values while for each loop is used for iterating over elements of an array.
For loop is used when the number of iterations is known beforehand.
For each loop is used when the number of iterations is not known beforehand.
For loop can be used with any iterable object.
For each loop can only be used with arrays and other iterable objects.
For loop uses an index variable to access...
I applied via Naukri.com and was interviewed in Sep 2020. There were 3 interview rounds.
The HashMap class is used to represent key-value pairs in Java.
HashMap is a part of the Java Collections Framework.
It allows null values and only one null key.
It provides constant-time performance for basic operations like get and put.
Example: HashMap<String, Integer> map = new HashMap<>();
Abstraction is the process of simplifying complex systems by focusing on essential details and hiding unnecessary complexities.
Abstraction allows us to create models or representations of real-world objects or systems in software.
It helps in managing complexity by breaking down a system into smaller, more manageable parts.
Abstraction provides a level of indirection, allowing changes to be made in one part of the system...
try-catch is used in Java to handle exceptions and prevent program crashes.
try-catch blocks are used to catch and handle exceptions that may occur during program execution.
It allows the program to gracefully handle errors and prevent the program from crashing.
The try block contains the code that may throw an exception, and the catch block handles the exception.
Multiple catch blocks can be used to handle different types...
The statement to use for selecting based on integer inputs is the 'switch' statement.
The 'switch' statement allows for multiple cases to be evaluated based on the value of an integer input.
Each case represents a possible value of the input, and the corresponding code block is executed if the value matches.
The 'switch' statement also provides a 'default' case which is executed if none of the cases match the input value.
...
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
The process for Software Development Engineer involves planning, designing, coding, testing, and deploying software solutions.
Gather requirements from stakeholders
Create a design based on requirements
Write code to implement the design
Test the software for bugs and issues
Deploy the software for users to use
Iterate on feedback and make improvements
Topics:
Python, Django, MySQL, Automation, Technical questions
XML is a markup language while JSON is a lightweight data interchange format.
XML uses tags to define elements while JSON uses key-value pairs.
XML is more verbose and complex than JSON.
JSON is easier to read and parse than XML.
XML supports namespaces and validation while JSON does not.
XML is widely used in web services and document exchange while JSON is preferred for data exchange between applications.
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