Add office photos
Employer?
Claim Account for FREE

Citicorp

3.7
based on 4.3k Reviews
Filter interviews by

Smifs Interview Questions and Answers

Updated 28 Feb 2024
Popular Designations

Q1. 1. What are the Java 8 Features you've worked with?

Ans.

Java 8 introduced several new features including lambda expressions, functional interfaces, and streams.

  • Lambda expressions allow for more concise and functional programming style.

  • Functional interfaces enable the use of lambda expressions.

  • Streams provide a powerful way to process collections of data in a functional manner.

  • Default methods in interfaces allow for adding new methods to existing interfaces without breaking compatibility.

  • Optional class helps to handle null values m...read more

View 1 answer

Q2. How will you handle an out-of-memory exception?

Ans.

Handle out-of-memory exception by analyzing heap dump and optimizing code.

  • Analyze heap dump to identify memory leaks

  • Optimize code to reduce memory usage

  • Increase heap size if necessary

  • Use memory profiling tools like JProfiler or VisualVM

  • Avoid creating unnecessary objects

  • Use caching to reduce object creation

  • Implement garbage collection strategies

Add your answer

Q3. Difference between shallow and deep comparision in Strings with code example.

Ans.

Shallow and deep comparison in Strings with code example

  • Shallow comparison checks if two String variables refer to the same object in memory

  • Deep comparison checks if two String variables have the same sequence of characters

  • Shallow comparison can be done using the '==' operator

  • Deep comparison can be done using the 'equals()' method

  • Example: String str1 = 'hello'; String str2 = 'hello'; str1 == str2; //shallow comparison returns true

  • Example: String str1 = 'hello'; String str2 = ...read more

Add your answer

Q4. Flow of a String Boot Application

Ans.

A Spring Boot application follows a predefined flow of execution.

  • Application starts with main() method

  • Spring Application Context is initialized

  • Beans are created and dependencies are injected

  • Application starts serving requests

  • Requests are handled by Controllers and Services

  • Responses are returned to the client

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

Q5. what are the oops concepts

Ans.

Object-oriented programming concepts that help in organizing and designing code for reusability and maintainability.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (class).

  • Inheritance: Allowing a class to inherit properties and behavior from another class.

  • Polymorphism: Ability of objects to take on multiple forms or types.

  • Abstraction: Hiding the implementation details and showing only the necessary features of an object.

Add your answer

Q6. What is lambda expressions

Ans.

Lambda expressions are anonymous functions that allow you to pass behavior as an argument to a method.

  • Lambda expressions are used to provide a concise way to represent behavior as data.

  • They are commonly used in functional programming and can be used to implement functional interfaces.

  • Lambda expressions can be used to iterate through collections using the forEach method.

Add your answer

Q7. What Java memory model

Ans.

The Java memory model defines how threads interact through memory when accessing shared data.

  • Defines the rules for reading and writing to shared variables in a multithreaded environment

  • Ensures visibility of changes made by one thread to other threads

  • Specifies the order in which operations are executed and how they are synchronized

Add your answer

Q8. What is stream api

Ans.

Stream API is a feature in Java that allows processing collections of objects in a functional style.

  • Stream API provides a way to perform operations on collections like filter, map, reduce, etc.

  • It supports functional programming paradigms like lambda expressions.

  • Example: List names = Arrays.asList("Alice", "Bob", "Charlie"); Stream stream = names.stream();

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

Interview Process at Smifs

based on 1 interviews
Interview experience
5.0
Excellent
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.8
 • 19 Interview Questions
3.7
 • 18 Interview Questions
3.7
 • 16 Interview Questions
3.8
 • 15 Interview Questions
3.8
 • 13 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

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