Add office photos
Engaged Employer

IBM

4.1
based on 21.3k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

Universal Hunt Interview Questions and Answers

Updated 1 Dec 2024
Popular Designations

Q1. 1. Abstraction vs Inheritance 2. What is Garbage collector? 3. What is class loader? 4. Spring security 5. Scopes of bean 6. Wait , notify and notify all 7. Class level vs object level local 8. Arraylist vs Lin...

read more
Ans.

Java interview questions covering topics like abstraction, inheritance, garbage collector, class loader, Spring security, bean scopes, wait-notify, class vs object level local, ArrayList vs LinkedList, Singleton class, and RestController vs Controller.

  • Abstraction focuses on hiding implementation details while inheritance allows a class to inherit properties and methods from another class.

  • Garbage collector is a program that automatically frees up memory by deleting objects tha...read more

Add your answer

Q2. what are the advantages of spring boot

Ans.

Spring Boot provides a simplified way to create stand-alone, production-grade Spring-based Applications.

  • Rapid application development

  • Embedded server for easy deployment

  • Auto-configuration for setting up Spring projects quickly

  • Microservices support

  • Actuator for monitoring and managing applications

View 1 answer

Q3. How to make class as a immutable?

Ans.

To make a class immutable in Java, make it final, declare all fields as private and final, and provide only getter methods.

  • Declare the class as final to prevent inheritance

  • Declare all fields as private and final to prevent modification

  • Provide only getter methods to access the fields

  • Avoid providing setter methods or any other methods that modify the state of the class

Add your answer

Q4. Difference between Interface and Abstract class?

Ans.

An interface is a contract that defines a set of methods that a class must implement, while an abstract class is a class that cannot be instantiated and can contain both abstract and non-abstract methods.

  • An interface can only have abstract methods, while an abstract class can have both abstract and non-abstract methods.

  • A class can implement multiple interfaces, but can only extend a single abstract class.

  • Interfaces are used to achieve multiple inheritance in Java.

  • Abstract cla...read more

Add your answer
Discover Universal Hunt interview dos and don'ts from real experiences

Q5. Difference between hashmap and hash table

Ans.

HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.

  • HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.

  • HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.

  • HashMap is generally preferred for non-thread-safe applications, while HashTable is used in multi-threaded environments.

Add your answer

Q6. microservices architecture in spring microservices

Ans.

Microservices architecture in Spring is a way of designing software applications as a collection of loosely coupled services.

  • Microservices architecture breaks down a large application into smaller, independent services that can be developed, deployed, and scaled independently.

  • Spring Boot and Spring Cloud are commonly used frameworks for building microservices in Java.

  • Each microservice typically has its own database and communicates with other services through APIs.

  • Microservic...read more

Add your answer

Q7. Give three date functions?

Ans.

Three date functions in Java are getDate(), getMonth(), and getYear().

  • getDate() - Returns the day of the month represented by this Date object.

  • getMonth() - Returns the month represented by this Date object.

  • getYear() - Returns the year represented by this Date object.

Add your answer

More about working at IBM

Top Rated Mega Company - 2024
Top Rated Company for Women - 2024
Top Rated IT/ITES Company - 2024
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Universal Hunt

based on 12 interviews in the last 1 year
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Java Developer Interview Questions from Similar Companies

3.7
 • 39 Interview Questions
3.5
 • 23 Interview Questions
3.5
 • 19 Interview Questions
3.6
 • 18 Interview Questions
3.8
 • 11 Interview Questions
3.7
 • 10 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