Add office photos
Employer?
Claim Account for FREE

Infrrd

3.7
based on 71 Reviews
Filter interviews by

10+ Malathi Manipal Hospital Interview Questions and Answers

Updated 29 Sep 2024

Q1. Design a layered architecture for saving the user data to db. What all annotations to be used on each class and on functions if any?

Ans.

Design a layered architecture for saving user data to db with appropriate annotations.

  • Create a data access layer (DAO) to interact with the database using annotations like @Repository

  • Implement a service layer to handle business logic with annotations like @Service

  • Use @Entity annotation on model classes to map them to database tables

  • Add @Id annotation on primary key fields in model classes

  • Utilize @Transactional annotation on service methods for transaction management

Add your answer

Q2. Sql query to find nth highest salary. What does limit and offset do?

Ans.

SQL query to find nth highest salary using LIMIT and OFFSET.

  • Use ORDER BY salary DESC to sort salaries in descending order.

  • Use LIMIT 1 OFFSET n-1 to get the nth highest salary.

  • For example, SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2 will give the 3rd highest salary.

Add your answer

Q3. Which data structure to use to store data in the order of insertion and also have uniqueness?

Ans.

LinkedHashSet is the data structure to use for storing data in order of insertion and uniqueness.

  • LinkedHashSet maintains insertion order and ensures uniqueness of elements.

  • It uses a combination of LinkedList and HashSet to achieve this.

  • Example: LinkedHashSet set = new LinkedHashSet<>();

Add your answer

Q4. Which is better SQL or nosql

Ans.

It depends on the specific use case and requirements of the project.

  • SQL is better for structured data and complex queries

  • NoSQL is better for unstructured data and scalability

  • Consider the need for ACID compliance and data consistency

  • Choose based on the project's requirements and scalability needs

Add your answer
Discover Malathi Manipal Hospital interview dos and don'ts from real experiences

Q5. What to choose nodejs or java.

Ans.

It depends on the specific project requirements and team expertise.

  • Consider the project requirements - Node.js is great for real-time applications, while Java is better for large-scale enterprise applications.

  • Evaluate team expertise - If your team is more familiar with JavaScript, Node.js may be the better choice.

  • Performance - Java is generally faster and more efficient than Node.js.

  • Scalability - Java is known for its scalability, making it a good choice for growing applicati...read more

Add your answer

Q6. How to handle exception at controller level? Use of restcontrolleradvice

Ans.

Using RestControllerAdvice to handle exceptions at controller level in Java

  • Create a class annotated with @RestControllerAdvice to handle exceptions globally

  • Use @ExceptionHandler annotation in the class to define methods to handle specific exceptions

  • Return ResponseEntity with appropriate status code and error message in the exception handling methods

Add your answer
Are these interview questions helpful?

Q7. What are closures in JavaScript? Explain using an appropriate example.

Ans.

Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.

  • Closures allow functions to access variables from their parent function's scope

  • They are created whenever a function is defined within another function

  • Closures can be used to create private variables and functions

Add your answer

Q8. Implement a small error handling thread wxecutor service project in spring boot.

Ans.

Implement a small error handling thread executor service project in Spring Boot.

  • Create a Spring Boot project

  • Implement a custom thread executor service

  • Handle errors and exceptions in the executor service

  • Use Spring Boot's error handling mechanisms

  • Test the error handling functionality

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What is Prototypal Inheritance in JavaScript?

Ans.

Prototypal Inheritance in JavaScript is a way of creating objects based on existing objects.

  • In JavaScript, each object has a prototype property which allows one object to inherit properties and methods from another object.

  • When a property or method is accessed on an object, JavaScript will first look for it on the object itself, then on its prototype, and so on up the prototype chain.

  • Prototypal Inheritance allows for code reusability and helps in creating a hierarchy of object...read more

Add your answer

Q10. What are the various lifecycle hooks in Angular?

Ans.

Angular lifecycle hooks are methods that allow you to tap into specific points in a component's lifecycle.

  • ngOnChanges: Called when an input property changes

  • ngOnInit: Called once the component is initialized

  • ngDoCheck: Called during every change detection run

  • ngAfterContentInit: Called after content (ng-content) has been projected into the component

  • ngAfterContentChecked: Called after every check of the projected content

  • ngAfterViewInit: Called after the component's view has been ...read more

Add your answer

Q11. what is oops, abstraction, ioc container, application context

Ans.

OOPs is a programming paradigm based on the concept of objects. Abstraction is the process of hiding implementation details from the user.

  • OOPs stands for Object-Oriented Programming.

  • Abstraction is achieved through encapsulation and inheritance.

  • IOC container is a framework for implementing Inversion of Control.

  • Application context is a container for holding beans in Spring Framework.

Add your answer

Q12. Check string is palindrome Reverse number Check if it is anagram Oops related concept were asked

Ans.

Palindrome and anagram check for strings and reverse number implementation.

  • To check if a string is palindrome, compare the string with its reverse.

  • To check if two strings are anagram, sort both strings and compare them.

  • To reverse a number, use modulo operator and divide the number by 10.

  • Oops concepts like inheritance, polymorphism, encapsulation, and abstraction were asked.

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

Interview Process at Malathi Manipal Hospital

based on 8 interviews in the last 1 year
Interview experience
4.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 384 Interview Questions
3.8
 • 209 Interview Questions
3.8
 • 202 Interview Questions
3.8
 • 202 Interview Questions
4.1
 • 162 Interview Questions
3.8
 • 130 Interview Questions
View all
Top Infrrd 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
Get AmbitionBox app

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