Filter interviews by
I applied via Referral and was interviewed in Jul 2023. There were 4 interview rounds.
The string constant pool is a special memory area in Java where string literals are stored.
String constant pool is a part of the heap memory.
It is used to optimize memory usage by reusing string literals.
String objects created using the same literal share the same memory location.
String constant pool can be accessed using the intern() method.
Example: String str1 = "Hello"; String str2 = "Hello"; str1 and str2 point to
I would rate myself at java as an 8 out of 10.
I have extensive experience in Java programming.
I have successfully completed multiple Java projects.
I am familiar with various Java frameworks and libraries.
I continuously update my knowledge and skills in Java.
I am confident in my ability to solve complex problems using Java.
s1 stores the string 'hello' in the stack memory, while s2 stores a new string object with the same value in the heap memory.
s1 is a reference variable that stores the memory address of the string 'hello' in the stack memory.
s2 is a reference variable that stores the memory address of a new string object created in the heap memory.
The string 'hello' is stored in the heap memory because it was created using the 'new' ke
I have used Java version 8 and SpringBoot version 2.4.2.
I have experience working with Java 8 and SpringBoot 2.4.2.
I am familiar with the features and functionalities of Java 8 and SpringBoot 2.4.2.
I have developed applications using Java 8 and SpringBoot 2.4.2.
I have utilized the latest enhancements and improvements provided by Java 8 and SpringBoot 2.4.2.
Java program to filter out prime numbers and print composite numbers from 1 to 100.
Iterate through numbers 1 to 100
Check if each number is prime or composite
Print the composite numbers
A bean in Spring is a Java object that is instantiated, assembled, and managed by the Spring IoC container.
Beans are the basic building blocks of a Spring application.
They are defined in the Spring configuration file or using annotations.
Beans are managed by the Spring IoC container, which handles their lifecycle and dependencies.
Beans can be singleton, prototype, or scoped.
Dependency injection is used to wire beans to...
RestController is a class in Spring Boot that combines @Controller and @ResponseBody annotations to simplify RESTful web service development.
RestController is used to create RESTful web services in Spring Boot.
It is a specialized version of the @Controller annotation.
It combines the @Controller and @ResponseBody annotations.
The @ResponseBody annotation is used to bind the method return value to the web response body.
It...
The @Component and @Service annotations in Spring Boot are used to define beans, but @Service is a specialization of @Component.
Both @Component and @Service annotations are used to define beans in Spring Boot.
@Service is a specialization of @Component and is used to indicate that a class is a service component.
The @Service annotation is typically used for classes that perform business logic or provide services.
The @Com...
A Java function to determine if a given number is divisible by 3, 5, or 15.
Use the modulo operator (%) to check if the number is divisible by 3, 5, or 15.
If the number is divisible by 3, print 3.
If the number is divisible by 5, print 5.
If the number is divisible by 15, print 15.
If none of the above conditions are met, do not print anything.
The flow of a Spring Boot API involves handling HTTP requests, routing them to appropriate controllers, processing the requests, and returning responses.
Spring Boot API receives HTTP requests from clients
The requests are routed to appropriate controllers based on the defined endpoints
Controllers process the requests by invoking appropriate services or repositories
Services handle the business logic and interact with rep...
Java 8 program to flatten a nested list into a single list.
Use flatMap() method to flatten the nested list.
Convert the nested list to a stream and use flatMap() to flatten it.
Collect the flattened stream into a list using the Collectors.toList() method.
Sorts a list of strings based on the second character in each string.
Use the `Comparator.comparing` method to specify the key for sorting.
Access the second character of a string using the `charAt` method.
Use the `Collections.sort` method to sort the list.
Java 8 Stream to get average, minimum, maximum from List of BigDecimal or Integer.
Use the stream() method on the List to create a Stream
Use the mapToDouble() method to convert the elements to double values
Use the average(), min(), and max() methods to get the desired values
Use the getAsDouble() method to retrieve the result as a double value
A Consumer function for String in Java 8.
Use the Consumer functional interface from the java.util.function package.
Implement the accept() method to perform the desired operation on the input string.
Example: Consumer
We use Java 11 and Spring Boot 2.4.2 in our project.
Java 11 is the latest LTS version of Java, providing improved performance and security.
Spring Boot 2.4.2 is a stable release with bug fixes and new features.
Using the latest versions ensures compatibility with the latest libraries and frameworks.
Java 11 example: java -version
Spring Boot 2.4.2 example: spring --version
To retrieve only names from a table, you can use a SELECT query with the appropriate column name.
Use the SELECT statement to specify the column(s) you want to retrieve.
Specify the name column in the SELECT clause to retrieve only names.
Use the FROM clause to specify the table from which you want to retrieve the names.
Server-side validation without third-party library using core Java
Use regular expressions for pattern matching
Implement custom validation logic using core Java classes
Leverage Java's built-in exception handling for error handling
To ensure that the bug fix does not break existing functionality, thorough testing and quality assurance processes should be followed.
Perform unit testing to verify that the bug fix works as expected and does not introduce new issues.
Conduct integration testing to ensure that the bug fix does not cause any conflicts or compatibility issues with other components.
Execute regression testing to validate that the bug fix do...
The functional interface mostly used in Java 8 is the java.util.function package.
The most commonly used functional interfaces in Java 8 are Predicate, Consumer, Function, and Supplier.
Predicate is used for boolean-valued functions of one argument.
Consumer is used for operations that take in one argument and return no result.
Function is used for functions that accept one argument and produce a result.
Supplier is used fo...
I applied via campus placement at Maulana Azad National Institute of Technology (NIT), Bhopal and was interviewed in Aug 2022. There were 4 interview rounds.
Basic questions like print permutations of a string. 4-5 Puzzles
Reverse all words in a given paragraph.
Top trending discussions
I applied via Campus Placement and was interviewed in Mar 2024. There were 3 interview rounds.
It is a good process.
Tell Anything about the topic.
I am a passionate software developer with 5 years of experience in developing web applications using Java, Spring Boot, and Angular.
5 years of experience in software development
Proficient in Java, Spring Boot, and Angular
Passionate about coding and problem-solving
Yes, there are active backlogs in btech.
Yes, there are active backlogs in btech as students may have pending assignments, projects, or exams.
Students may also have backlogs in terms of failed courses that need to be cleared.
Backlogs can affect a student's academic progress and may require extra effort to catch up.
Some students may choose to prioritize certain subjects over others, leading to backlogs in specific areas.
posted on 29 Aug 2023
I applied via Campus Placement
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Initialize an array of strings to be sorted
Repeat until no swaps are needed: Compare adjacent elements and swap if necessary
Continue until the entire array is sorted
Oops concept, java basics, sqlqueries
I applied via Recruitment Consulltant and was interviewed in Jan 2023. There were 3 interview rounds.
posted on 19 Nov 2022
I applied via Company Website and was interviewed in Oct 2022. There were 2 interview rounds.
Simple technical maths calculations,
Writing a Jawa coding in small projects
Java is a programming language while Spring MVC is a web framework built on top of Java.
Java is an object-oriented language used for developing applications.
Spring MVC is a framework that provides a model-view-controller architecture for building web applications.
Spring MVC is built on top of the Java Servlet API and provides features like request mapping, view resolution, and data binding.
Spring MVC also provides supp...
Spring is a Java framework for building web applications. Hibernate is an ORM tool for mapping Java objects to relational databases.
Spring provides a comprehensive programming and configuration model for modern Java-based enterprise applications.
Hibernate simplifies the development of Java application to interact with the database.
Spring and Hibernate can be used together to build robust and scalable applications.
Examp...
I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.
I was interviewed in Oct 2020.
Round duration - 90 minutes
Round difficulty - Medium
Test was active from 28th September 8 PM till 2 AM (29th September’20). We could attempt at any time.
1.5 Hr Duration
Two coding questions.
You are provided with an undirected graph containing 'N' vertices and 'M' edges. The vertices are numbered from 1 to 'N'. Your objective is to determi...
There is a cycle in the graph only if there is a back edge (back edge is an edge that connects a vertex to another vertex that is discovered before it's parent) present in the graph. To detect a back edge, we will keep track of vertices that have been already visited. If we reach a vertex that is already visited and is not the parent vertex of the current vertex, then there is a cycle in the graph.&n...
You are provided with a 2-dimensional matrix having N
rows and M
columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...
We can use the flood fill algorithm to check for all connected 1s.
Round duration - 60 minutes
Round difficulty - Medium
Online video call round on Microsoft Teams
Interviewer was very friendly.
This round is often called Domain Discussion Round.
Given a string str
consisting of lowercase English alphabet letters, and an integer K
, you are allowed to perform at most K
operations on this string. An oper...
In this approach, we will consider every substring and check if it can be the longest repeating substring. Let’s say we have a variable ‘longestSubstring’ that stores the length of the longest repeating substring.
We can convert a substring into a repeating substring if, (L - MX) <= K (where ‘L’ is the length of substring and ‘MX’ is the count of the character which occurs maximum times in this subst...
Round duration - 60 minutes
Round difficulty - Medium
One hour HR round.
Also called Core Values Interview.
The Interviewer was a senior level employee and was very friendly.
Tip 1 : Interview is more like a two-way discussion rather than a question-answer session, feel free to ask for help/hints if you're stuck.
Tip 2 : Even if you don't know the solution to the problem just try to work out a naive solution. You can optimize it later.
Tip 3 : Make sure to read out the interview experiences of other people who have applied for the same role/company in the past
Tip 1: Keep it concise and to the point.
Tip 2: Don't forget to show your best achievements
Interview experience
Programmer
50
salaries
| ₹3.4 L/yr - ₹11.2 L/yr |
Junior Programmer
21
salaries
| ₹2.8 L/yr - ₹7 L/yr |
Senior Programmer
15
salaries
| ₹7.3 L/yr - ₹12.4 L/yr |
Business Analyst
11
salaries
| ₹3 L/yr - ₹7.5 L/yr |
UI/UX Designer
11
salaries
| ₹4.1 L/yr - ₹10 L/yr |
TCS
Infosys
Wipro
HCLTech