Add office photos
Premium Employer

Adeptia

3.6
based on 32 Reviews
Filter interviews by

Zingo Techservices Interview Questions and Answers

Updated 18 Jan 2025

Q1. What is the process of implementing serialization and deserialization in Java?

Ans.

Serialization is the process of converting an object into a byte stream, while deserialization is the process of converting a byte stream back into an object in Java.

  • To implement serialization in Java, a class must implement the Serializable interface.

  • Use ObjectOutputStream to write objects to a file or network.

  • To implement deserialization, use ObjectInputStream to read objects from a file or network.

  • Make sure all fields of the class are serializable, or mark them as transien...read more

Add your answer

Q2. What is difference between concurrent hashmap and hashmap?

Ans.

ConcurrentHashMap allows multiple threads to read/write concurrently, while HashMap is not thread-safe.

  • ConcurrentHashMap allows multiple threads to read/write concurrently without blocking each other.

  • HashMap is not thread-safe and can lead to data corruption if accessed by multiple threads simultaneously.

  • ConcurrentHashMap achieves thread-safety by using internal synchronization mechanisms like locks or CAS operations.

  • HashMap does not provide any internal synchronization, so e...read more

Add your answer

Q3. what is Reentrant lock?

Ans.

Reentrant lock is a synchronization primitive that allows a thread to acquire the same lock multiple times.

  • Allows a thread to acquire the same lock multiple times

  • Prevents deadlock by allowing a thread to re-enter the lock it already holds

  • Useful in situations where a method needs to call another method that also requires the same lock

  • Example: Java's ReentrantLock class

Add your answer

Q4. Count of substring in a string

Ans.

Count the number of occurrences of a substring in a given string.

  • Use a loop to iterate through the string and check for the substring at each position.

  • Use the indexOf method to find the starting index of the substring in the string.

  • Increment a counter each time the substring is found.

  • Handle edge cases like empty string or null substring.

Add your answer
Discover Zingo Techservices interview dos and don'ts from real experiences

Q5. explain Multithreading ?

Ans.

Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for parallel processing.

  • Multithreading allows for better utilization of CPU resources by running multiple threads simultaneously.

  • Threads share the same memory space, allowing for efficient communication and data sharing.

  • Examples of multithreading include running multiple tasks in a web server concurrently or processing data in parallel in a video editing software.

Add your answer

Q6. Internal working of hashmap

Ans.

HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.

  • HashMap internally uses an array of linked lists to store key-value pairs.

  • When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.

  • If multiple keys hash to the same index, a linked list is used to handle collisions.

  • HashMap uses the hashCode() method of keys to calculate the hash value.

  • HashMap allows null keys an...read more

Add your answer

Q7. What is polymorphism

Ans.

Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • It enables a single interface to represent multiple data types.

  • Examples include method overloading and method overriding in object-oriented programming.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Zingo Techservices

based on 8 interviews
Interview experience
2.9
Poor
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.1
 • 686 Interview Questions
4.0
 • 245 Interview Questions
3.6
 • 242 Interview Questions
3.8
 • 204 Interview Questions
4.1
 • 148 Interview Questions
4.3
 • 134 Interview Questions
View all
Top Adeptia Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter