Add office photos
Premium Employer

Intellect Design Arena

4.1
based on 1.8k Reviews
Filter interviews by

10+ Hlg Memorial Hospital Interview Questions and Answers

Updated 12 Aug 2024
Popular Designations
Q1. Java Question

How can we achieve polymorphism in Java?

Add your answer
Q2. Java Question

Can we use static method in an interface?

Add your answer
Q3. Java Question

Difference between Abstract Class and Interface

Add your answer

Q4. 1. Exception handling in java 2. What is method overriding

Ans.

Exception handling in Java is a mechanism to handle runtime errors and prevent program termination.

  • Java provides try, catch, and finally blocks to handle exceptions.

  • Checked exceptions must be caught or declared in the method signature.

  • Unchecked exceptions do not need to be caught or declared.

  • Example: try { // code that may throw exception } catch (Exception e) { // handle exception }

  • Example: try { // code that may throw exception } finally { // cleanup code }

Add your answer
Discover Hlg Memorial Hospital interview dos and don'ts from real experiences

Q5. Reverse string using any popular language

Ans.

Reverse a string using popular programming languages

  • Use built-in functions like reverse() in Python

  • Iterate through the string in reverse order in C++

  • Use StringBuilder.reverse() in Java

Add your answer

Q6. Find length of string they give string

Ans.

Use the length() function to find the length of the given string.

  • Use the length() function in programming languages like Java, Python, C++, etc.

  • For example, in Java: String str = 'hello'; int length = str.length();

  • Make sure to handle edge cases like empty strings or null values.

Add your answer

Q7. Prime number using any popular language

Ans.

A prime number is a number greater than 1 that can only be divided by 1 and itself.

  • Use a loop to check if the number is divisible by any number other than 1 and itself

  • Start checking from 2 up to the square root of the number for efficiency

  • If the number is only divisible by 1 and itself, it is a prime number

Add your answer

Q8. Remove duplicatefrom string

Ans.

Use a set to remove duplicates from a string

  • Create a set to store unique characters

  • Iterate through the string and add each character to the set

  • Convert the set back to a string to get the result

Add your answer

Q9. Replace characters from string

Ans.

Replace characters from string with another character

  • Use a loop to iterate through each character in the string

  • Check if the character needs to be replaced and replace it with the desired character

  • Return the modified string

Add your answer

Q10. Write star pattern

Ans.

Print a star pattern using loops

  • Use nested loops to print the desired pattern

  • Start with a small pattern and then increase complexity

  • Use '*' character to represent the stars

  • Example: For a simple pattern, you can use a loop to print '*' in a single line

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

Interview Process at Hlg Memorial Hospital

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

Top System Engineer Interview Questions from Similar Companies

3.7
 • 636 Interview Questions
3.9
 • 16 Interview Questions
3.3
 • 12 Interview Questions
3.9
 • 11 Interview Questions
3.8
 • 11 Interview Questions
4.1
 • 11 Interview Questions
View all
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