i
Girmiti Software
Filter interviews by
Program to reverse a string using Java
Use StringBuilder class to reverse the string
Convert the string to StringBuilder, call reverse() method, then convert back to string
Alternatively, use char array and swap characters from start and end
ArrayList vs LinkedList: ArrayList uses dynamic array, LinkedList uses doubly linked list. HashMap vs HashSet: HashMap stores key-value pairs, HashSet stores unique elements.
ArrayList is faster for accessing elements by index, LinkedList is faster for adding/removing elements in the middle.
HashMap allows null key and values, HashSet does not allow duplicate elements.
Example: ArrayList
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Sep 2024. There were 3 interview rounds.
I applied via Campus Placement
There was pattern question in any programming language and you have make the pattern dynamic.
I applied via Referral and was interviewed in Oct 2023. There was 1 interview round.
Merge 2 sorted arrays into a single sorted array.
Create a new array with the combined length of the two input arrays
Use two pointers to iterate through the two arrays and compare elements to merge them into the new array
Handle cases where one array is longer than the other
Encapsulation, Inheritance, Polymorphism, Abstraction are the 4 pillars of OOPs
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class in Java
Inheritance: Ability of a class to inherit properties and behavior from another class. Example: Parent and Child classes
Polymorphism: Ability to present the same interface for different data types. Example: Method overloading and overr...
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
Code review to find bugs
Interface features include abstraction, multiple inheritance, and contract enforcement.
Abstraction: Interfaces allow for the definition of methods without implementation, providing a blueprint for classes to follow.
Multiple Inheritance: Java interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Contract Enforcement: Interfaces define a contract that implementing classes must adhere
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
I applied via Job Portal and was interviewed in Jun 2023. There were 3 interview rounds.
posted on 14 Jun 2023
Java basic problems , Array , Collections, String , Java 8 , Spring Boot,String MVC
Count the occurrence of each word in a sentence using Java code.
Split the sentence into an array of words using split() method.
Create a HashMap to store each word and its count.
Iterate through the array and update the count in the HashMap.
Print the word and its count at the end.
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
Java is a high-level programming language used for developing applications. OOPs concepts are the principles of object-oriented programming. String is a sequence of characters.
Java is an object-oriented language that is platform-independent.
OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction.
String is a class in Java that represents a sequence of characters.
Types of strings include immutable
based on 4 reviews
Rating in categories
Software Engineer
128
salaries
| ₹3 L/yr - ₹10.4 L/yr |
Senior Software Engineer
118
salaries
| ₹5 L/yr - ₹17 L/yr |
Software Developer
100
salaries
| ₹3 L/yr - ₹12 L/yr |
Softwaretest Engineer
46
salaries
| ₹2.5 L/yr - ₹10 L/yr |
Java Developer
41
salaries
| ₹3.2 L/yr - ₹8 L/yr |
TCS
Infosys
Wipro
Tech Mahindra