Add office photos
Employer?
Claim Account for FREE

Feathersoft Info Solutions

4.4
based on 38 Reviews
Filter interviews by

InTechHub Interview Questions and Answers

Updated 5 Feb 2024

Q1. Find the lowest number from an arraylist using streams

Ans.

Find the lowest number from an arraylist using streams

  • Use stream.min() method to find the lowest number

  • Pass Comparator.naturalOrder() to get the lowest number

  • Handle empty list scenario using OptionalInt

Add your answer

Q2. Demonstrate inheritance in java with code

Ans.

Inheritance in Java allows a class to inherit properties and methods from another class.

  • Use the 'extends' keyword to create a subclass that inherits from a superclass

  • The subclass can access all public and protected members of the superclass

  • Example: class Dog extends Animal { ... }

  • The 'super' keyword is used to call the superclass constructor or method

Add your answer

Q3. Configuring server port in a spring boot app

Ans.

To configure server port in a Spring Boot app, modify the application.properties file.

  • Open the application.properties file

  • Add the following line: server.port=8080 (or any desired port number)

  • Save the file and restart the application

Add your answer

Q4. Find duplicate alphabets in a string

Ans.

Program to find duplicate alphabets in a string

  • Create a HashMap to store the frequency of each alphabet

  • Iterate through the string and update the frequency in the HashMap

  • Iterate through the HashMap and print the alphabets with frequency greater than 1

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

Q5. Abstract and anonymous classes in java

Ans.

Abstract classes are incomplete classes that cannot be instantiated. Anonymous classes are unnamed classes that can be created on the fly.

  • Abstract classes are declared with the 'abstract' keyword and can have abstract and non-abstract methods.

  • Anonymous classes are created using the 'new' keyword and can extend a class or implement an interface.

  • Anonymous classes are often used for event handling and callbacks.

  • Example of abstract class: abstract class Shape { abstract void draw...read more

Add your answer

Q6. Reverse a given string

Ans.

Reverse a given string

  • Iterate through the string from end to start and append each character to a new string

  • Use StringBuilder or StringBuffer for better performance

  • Convert the string to a character array and swap the first and last characters, then move towards the middle until the entire string is reversed

Add your answer

Q7. Find vowels from a string

Ans.

A Java program to find vowels from a given string.

  • Create a string variable and initialize it with the given string.

  • Use a for loop to iterate through each character of the string.

  • Check if the character is a vowel using if statement and add it to a new string variable.

  • Print the new string variable containing all the vowels.

Add your answer

Q8. Explain controller in spring

Ans.

Controller in Spring is responsible for handling user requests and returning appropriate responses.

  • Controller receives requests from the client and delegates them to appropriate handlers

  • It maps the incoming requests to the corresponding handler methods

  • It returns the response to the client after processing the request

  • It can also handle exceptions and errors that occur during request processing

Add your answer

Q9. Use of refresh scope

Ans.

Refresh scope is used in Spring framework to control the lifecycle of beans.

  • Refresh scope is used to create a new instance of a bean every time it is requested.

  • It is useful when the state of a bean needs to be reset on every request.

  • To use refresh scope, add @RefreshScope annotation to the bean definition.

  • Example: @Bean @RefreshScope public MyBean myBean() { return new MyBean(); }

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

Interview Process at InTechHub

based on 2 interviews
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

3.8
 • 1.7k Interview Questions
4.0
 • 471 Interview Questions
3.6
 • 260 Interview Questions
3.8
 • 167 Interview Questions
3.9
 • 139 Interview Questions
View all
Top Feathersoft Info Solutions 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
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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