Lloyd Healthcare
Tescra Interview Questions and Answers
Q1. Difference between HashMap and ConcurrentHashMap. Which you prefer and why
HashMap is not thread-safe while ConcurrentHashMap is thread-safe. ConcurrentHashMap is preferred for concurrent operations.
HashMap is not thread-safe and can lead to ConcurrentModificationException in a multi-threaded environment.
ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.
ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concur...read more
Q2. explain multithreading. What is Callable interface
Multithreading is the ability of a CPU to execute multiple threads concurrently. Callable interface is similar to Runnable interface but can return a result and throw a checked exception.
Multithreading allows multiple threads to run concurrently, improving performance and responsiveness.
Callable interface in Java is similar to Runnable interface but can return a result and throw a checked exception.
Example: ExecutorService.submit(Callable) method returns a Future object repre...read more
Q3. Explain encapsulation, polymorphism, inheritance in java
Encapsulation, polymorphism, and inheritance are key concepts in Java OOP.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class). Access to the data is restricted to methods within the class.
Polymorphism: Ability of a single method to perform different actions based on the object it is acting upon. Achieved through method overloading and overriding.
Inheritance: Mechanism where a new class inherits properties and behaviors from an existing...read more
Q4. Explain exceptions - try with resources
Exceptions - try with resources is a Java feature that automatically closes resources after they are no longer needed.
Try with resources is a Java feature introduced in Java 7 to automatically close resources like streams, connections, etc. after they are no longer needed.
It simplifies the code by reducing the need for explicit resource management and ensures that resources are closed properly even if an exception occurs.
The syntax involves declaring the resource within the t...read more
Q5. What is the value of preparing dr wise agenda before field work ?
Preparing a Dr. wise agenda before field work helps in better time management and prioritization of tasks.
Helps in identifying the most important doctors to visit first
Allows for better planning of travel routes
Ensures that all necessary materials and samples are prepared beforehand
Helps in setting realistic targets for the day
Improves overall efficiency and productivity
Q6. What is OOPS ?
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS focuses on creating objects that contain data in the form of fields (attributes) and code in the form of procedures (methods).
Encapsulation, inheritance, and polymorphism are key principles of OOPS.
Examples of OOPS languages include Java, C++, and Python.
Q7. Tell me your strategy for secondary town development?
My strategy for secondary town development involves identifying potential markets, building relationships with local stakeholders, and implementing targeted marketing campaigns.
Conduct market research to identify potential opportunities
Build relationships with local businesses and community leaders
Develop targeted marketing campaigns to increase brand awareness
Offer incentives to attract new customers and retain existing ones
Provide excellent customer service to build loyalty...read more
Top HR Questions asked in Tescra
Interview Process at Tescra
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month