i
Wissen
Technology
Filter interviews by
Flattening a 2D array involves converting it into a 1D array, simplifying data manipulation and access.
Iterate through each row: Use a loop to access each row of the 2D array.
Add elements to a new array: For each element in the row, add it to a new 1D array.
Example: Given [[1, 2], [3, 4]], the result is [1, 2, 3, 4].
Using Streams: In Java 8+, you can use streams to flatten arrays: Arrays.stream(array).flatMap(Arra...
Flattening a 2D array involves converting it into a 1D array by concatenating its elements.
Use a loop to iterate through each row and column of the 2D array.
Create a new 1D array with a size equal to the total number of elements in the 2D array.
Copy each element from the 2D array to the 1D array.
Example: For a 2D array [['a', 'b'], ['c', 'd']], the flattened array is ['a', 'b', 'c', 'd'].
String literals are constant strings defined in code, while the string pool is a memory area where unique string objects are stored.
String literals are created using double quotes, while string pool objects are created using the 'new' keyword.
String literals are stored in the string pool to conserve memory and improve performance.
String literals are automatically interned by the JVM, while string pool objects need...
Add hashCode() and equals() methods to Employee class.
Override hashCode() method to generate a unique hash code for each Employee object.
Override equals() method to compare Employee objects based on their attributes.
Ensure that the attributes used in hashCode() and equals() methods are immutable.
Example: Add id, name, and department attributes to Employee class and override hashCode() and equals() methods based on...
Program to print the 90-degree rotated view of a 2D array.
Iterate through each column in reverse order and print the corresponding row elements.
Repeat this process for all columns to get the rotated view of the 2D array.
Program to reverse a linked list
Create a new linked list to store the reversed elements
Traverse the original linked list and insert each node at the beginning of the new list
Update the head of the new list as the last node of the original list
Ways to create a thread in Java include extending the Thread class, implementing the Runnable interface, and using Java 8's lambda expressions.
Extend the Thread class and override the run() method
Implement the Runnable interface and pass it to a Thread object
Use Java 8's lambda expressions with the Executor framework
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap is part of the Java Collections framework.
It allows null keys and values.
Internally, it uses an array of linked lists to handle collisions.
The key's hash code is used to determine the index in the array where the key-value pair is stored.
Example: HashMap<String, Integer> map = new HashMap&l...
Use a Set to remove duplicates from an array of strings.
Create a Set to store unique elements.
Iterate through the array and add each element to the Set.
Convert the Set back to an array to remove duplicates.
Design classes and interfaces for a card game, including card values and suits.
Create a Card class with properties: rank (A, 2-10, J, Q, K) and suit (Hearts, Diamonds, Clubs, Spades).
Implement a Deck class to manage a collection of Card objects, including shuffling and dealing methods.
Define a Game interface with methods like startGame(), endGame(), and playTurn().
Consider creating specific game classes (e.g., Pok...
I applied via Naukri.com and was interviewed in Feb 2023. There were 3 interview rounds.
Not overriding equals method can lead to incorrect comparison of objects. Not overriding hashCode method can lead to incorrect behavior in hash-based data structures.
If equals method is not overridden, the default implementation from Object class will be used which compares object references.
This can lead to incorrect comparison of objects where two different objects with same content are considered unequal.
If hashCode...
Synchronized methods ensure that only one thread can execute the method at a time per object.
Synchronized methods lock the object instance, preventing concurrent access.
When Ob1.M1() is called, it locks the instance of the object Ob1.
If Ob2.M1() is called on a different instance, it does not block Ob1's execution.
Both threads will execute M1() one after the other, but independently for each object.
Example: If Ob1 calls...
Find the number of unique k-diff pairs in an array where the absolute difference is k.
Use a HashMap to count occurrences of each number in the array.
Iterate through the keys of the HashMap to find pairs.
For k = 0, count pairs with the same number appearing more than once.
For k > 0, check if (num + k) exists in the HashMap for each num.
Answer the salary expectations question in an interview for a Java Developer position.
Research the average salary range for Java Developers in your location and level of experience.
Consider your qualifications, skills, and experience when determining your salary expectations.
Be realistic and flexible in your salary expectations, taking into account the company's budget and industry standards.
Provide a salary range rath...
I appeared for an interview in Dec 2024.
Custom stack with constant time access to minimum element
Use two stacks - one to store elements and another to store minimum values
When pushing an element, compare with top of min stack and push the smaller value
When popping an element, pop from both stacks
Access minimum element in O(1) time by peeking at top of min stack
To create an immutable class named Employee with fields for name and hobbies defined as List<String>, use private final fields and return new instances in getters.
Use private final fields for name and hobbies in the Employee class
Provide a constructor to initialize the fields
Return new instances or unmodifiable lists in the getters to ensure immutability
Add hashCode() and equals() methods to Employee class.
Override hashCode() method to generate a unique hash code for each Employee object.
Override equals() method to compare Employee objects based on their attributes.
Ensure that the attributes used in hashCode() and equals() methods are immutable.
Example: Add id, name, and department attributes to Employee class and override hashCode() and equals() methods based on thes...
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance of the class within the class itself.
Provide a public static method to access the instance, creating it if necessary.
Ensure the constructor of the class is private to prevent instantiation from outside the class.
Use lazy initialization to create the instance only when needed.
Thread...
SOLID principles are a set of five design principles in object-oriented programming to make software more maintainable, flexible, and scalable.
Single Responsibility Principle (SRP) - A class should have only one reason to change. Example: A class that handles user authentication should not also handle database operations.
Open/Closed Principle (OCP) - Software entities should be open for extension but closed for modific...
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve a problem.
Encapsulation is a key concept in OOP, where data is kept within an object and only accessible through its methods.
Inheritance allows objects to inherit attributes and methods from parent classes.
Po...
Threads communicate in Java through shared memory or message passing.
Threads can communicate through shared variables in memory.
Threads can communicate through synchronized methods or blocks.
Threads can communicate through wait(), notify(), and notifyAll() methods.
Threads can communicate through message passing using classes like BlockingQueue or ExecutorService.
Program to reverse a linked list
Create a new linked list to store the reversed elements
Traverse the original linked list and insert each node at the beginning of the new list
Update the head of the new list as the last node of the original list
String literals are constant strings defined in code, while the string pool is a memory area where unique string objects are stored.
String literals are created using double quotes, while string pool objects are created using the 'new' keyword.
String literals are stored in the string pool to conserve memory and improve performance.
String literals are automatically interned by the JVM, while string pool objects need to b...
Program to print the 90-degree rotated view of a 2D array.
Iterate through each column in reverse order and print the corresponding row elements.
Repeat this process for all columns to get the rotated view of the 2D array.
I applied via Walk-in and was interviewed in Dec 2024. There were 2 interview rounds.
The assessment consists of basic coding and SQL-related questions, including two challenge questions. The total test duration is 1 hour and 30 minutes, featuring a total of 7 questions, with a passing score of 50% out of 120 points.
I am a Java Developer currently residing in New York City.
Experienced Java Developer
Residing in New York City
Strong knowledge of Java programming language
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap is part of the Java Collections framework.
It allows null keys and values.
Internally, it uses an array of linked lists to handle collisions.
The key's hash code is used to determine the index in the array where the key-value pair is stored.
Example: HashMap<String, Integer> map = new HashMap<>...
posted on 2 Mar 2025
I appeared for an interview in Feb 2025.
I have over 8 years of experience in recruitment across various industries and roles.
Managed end-to-end recruitment process including sourcing, screening, interviewing, and onboarding.
Utilized various recruitment tools and platforms to attract top talent.
Developed and maintained strong relationships with hiring managers and candidates.
Implemented recruitment strategies to improve time-to-fill and quality of hires.
Condu...
I have utilized job boards such as Indeed, LinkedIn, Glassdoor, and Monster.
Indeed
Glassdoor
Monster
I applied via LinkedIn and was interviewed in Dec 2024. There were 2 interview rounds.
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
There were 3 to 4 questions related to the camera that needed to be solved within the given time.
Locking mechanism in multithreading is used to control access to shared resources by multiple threads.
Locks are used to prevent multiple threads from accessing shared resources simultaneously
Types of locks include synchronized blocks, ReentrantLock, and ReadWriteLock
Locks help prevent race conditions and ensure data consistency in multithreaded applications
Use SQL query to group by department and find employee with highest salary in each department
Write a SQL query to group by department and select max salary for each department
Join the result with employee table to get employee details
Example: SELECT dept, emp_name, MAX(salary) FROM employees GROUP BY dept
I applied via Approached by Company
Design classes and interfaces for a card game, including card values and suits.
Create a Card class with properties: rank (A, 2-10, J, Q, K) and suit (Hearts, Diamonds, Clubs, Spades).
Implement a Deck class to manage a collection of Card objects, including shuffling and dealing methods.
Define a Game interface with methods like startGame(), endGame(), and playTurn().
Consider creating specific game classes (e.g., PokerGam...
I appeared for an interview in Nov 2024.
Coding test was easy. They asked LC easy anyone with fair understanding of programming can easily solve it.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Convert an object array to an integer list, handling nested arrays of objects.
Use recursion to handle nested arrays. Example: [1, '2', [3, '4']] becomes [1, 2, 3, 4].
Check each element's type; convert strings to integers. Example: '5' -> 5.
Filter out non-integer convertible values. Example: ['a', 1] results in [1].
Utilize Java Streams for a concise solution if using Java.
Hackearth online coding test for 1 hour
Use sorting or heap data structure to find k largest elements in an array of strings.
Sort the array in descending order and return the first k elements.
Use a max heap data structure to efficiently find the k largest elements.
Examples: ['apple', 'banana', 'orange', 'kiwi'], k=2 -> ['orange', 'kiwi']
Remove duplicates from array of strings
Create a Set to store unique strings
Iterate through the array and add each string to the Set
Convert the Set back to an array to get the unique strings
I applied via Campus Placement
Test Duration : 90 mins
Platform : Hackerearth
Number of Questions : 10 ( 5 MCQs + 3 Coding questions + 2 SQL Questions)
Questions were of Easy to Medium Level
Developed a web application for project management using React, Node.js, and MongoDB.
Created a user-friendly interface for project tracking and collaboration
Implemented authentication and authorization features for secure access
Utilized React for front-end development, Node.js for back-end, and MongoDB for database management
Top trending discussions
Some of the top questions asked at the Wissen Technology interview -
The duration of Wissen Technology interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 161 interview experiences
Difficulty level
Duration
based on 476 reviews
Rating in categories
Software Engineer
836
salaries
| ₹7.5 L/yr - ₹25 L/yr |
Senior Software Engineer
719
salaries
| ₹9 L/yr - ₹36 L/yr |
Principal Engineer
334
salaries
| ₹16 L/yr - ₹45 L/yr |
Associate Software Engineer
153
salaries
| ₹5.5 L/yr - ₹17 L/yr |
Software Developer
150
salaries
| ₹8.5 L/yr - ₹26.5 L/yr |
Wissen Infotech
ITC Infotech
CMS IT Services
KocharTech