Add office photos
Engaged Employer

Coforge

3.4
based on 4.4k Reviews
Filter interviews by

Hetco Interview Questions and Answers

Updated 13 Jul 2024
Popular Designations

Q1. Adding port number as 0 for a service in Spring boot

Ans.

Setting port number as 0 in Spring Boot for a service

  • Setting port number as 0 allows the operating system to choose an available port

  • This is useful when running multiple instances of the same service on the same machine

  • To set port number as 0 in Spring Boot, add 'server.port=0' to application.properties or application.yml

Add your answer

Q2. Impact of changing annotations on spring boot classes

Ans.

Changing annotations on Spring Boot classes can have significant impact on the application.

  • Changing annotations can affect the behavior of the application

  • Annotations can control the lifecycle of beans, security, caching, etc.

  • Removing or modifying annotations can cause runtime errors

  • Adding new annotations can introduce new functionality

  • Annotations can affect the performance of the application

Add your answer

Q3. Write program to filter employees using java streams

Ans.

Program to filter employees using Java streams

  • Create a list of employees

  • Use stream() method to convert list to stream

  • Use filter() method to filter employees based on condition

  • Use collect() method to convert stream back to list

Add your answer

Q4. Singleton class in Java Why string is immutable in Java ? Difference between ArrayList & LinkedList What is IOC in Spring Find 3rd largest integer in integer array using streams in java. Java 8 nee features Sor...

read more
Ans.

A set of interview questions for a Senior Java Developer position.

  • Singleton class in Java is a class that allows only one instance of itself to be created.

  • String is immutable in Java because it ensures thread safety and allows for efficient memory management.

  • ArrayList and LinkedList are both implementations of the List interface, but differ in their underlying data structure and performance characteristics.

  • IOC (Inversion of Control) in Spring is a design principle that allows...read more

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

Q5. Differnce between ArrayList and LinkedList

Ans.

ArrayList is implemented as a resizable array while LinkedList is implemented as a doubly linked list.

  • ArrayList provides constant time for accessing elements while LinkedList provides constant time for adding or removing elements.

  • ArrayList is better for storing and accessing data while LinkedList is better for manipulating data.

  • ArrayList is faster for iterating through elements while LinkedList is faster for adding or removing elements in the middle of the list.

Add your answer

Q6. Different exceptions in Spring Boot

Ans.

Spring Boot has various exceptions for different scenarios.

  • DataAccessException - for database access errors

  • HttpMessageNotReadableException - for errors in HTTP message conversion

  • MethodArgumentNotValidException - for validation errors in request parameters

  • NoSuchBeanDefinitionException - for errors in bean configuration

  • UnauthorizedException - for authentication and authorization errors

Add your answer

Q7. What is java and springboot

Ans.

Java is a popular programming language used for developing various applications. Spring Boot is a framework that simplifies the development of Java applications.

  • Java is an object-oriented programming language known for its platform independence and versatility.

  • Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and tools.

  • Spring Boot allows for rapid development and deployment of Java applications, making it popu...read more

Add your answer

Q8. What is collection framework

Ans.

Collection framework is a set of classes and interfaces that provide a standard way to store and manipulate groups of objects.

  • It provides interfaces like List, Set, and Map for storing collections of objects.

  • It includes classes like ArrayList, LinkedList, HashSet, and HashMap for implementing these interfaces.

  • Collections framework simplifies the process of storing, retrieving, and manipulating data in Java.

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

Interview Process at Hetco

based on 5 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 Senior Java Developer Interview Questions from Similar Companies

3.7
 • 23 Interview Questions
3.9
 • 19 Interview Questions
3.8
 • 18 Interview Questions
3.7
 • 16 Interview Questions
3.8
 • 15 Interview Questions
3.7
 • 13 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