Add office photos
Employer?
Claim Account for FREE

QBurst Technologies

4.4
based on 253 Reviews
Filter interviews by

S. Soni & Co. Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. Given a string, get the count of each word in the string and put it in map

Ans.

Count the occurrence of each word in a given string and store it in a map.

  • Split the string into words using whitespace as delimiter

  • Create a map to store the word count

  • Iterate through the words and update the count in the map

  • Return the map

Add your answer

Q2. Class not found and no class definition found exception

Ans.

Class not found and no class definition found exception occurs when a required class is not found during runtime.

  • This exception occurs when the JVM tries to load a class but cannot find it in the classpath.

  • It can happen if the class is missing from the project dependencies or if the classpath is not properly configured.

  • Check if the class is present in the correct package and if it is included in the project dependencies.

  • Verify the classpath settings and ensure that all requir...read more

View 1 answer

Q3. What are the features in java 8

Ans.

Java 8 introduced several new features including lambda expressions, streams, and default methods.

  • Lambda expressions for functional programming

  • Streams for efficient processing of large data sets

  • Default methods to add new functionality to interfaces

  • Date and Time API for improved handling of date and time

  • Nashorn JavaScript engine for improved performance

  • Parallel array sorting for faster sorting of large arrays

Add your answer

Q4. What is Singleton class

Ans.

Singleton class is a class that allows only one instance of itself to be created and provides a global point of access to it.

  • Singleton class restricts the instantiation of a class to a single object.

  • It is used when only one instance of a class is required to control actions throughout the system.

  • The Singleton pattern is implemented by creating a class with a method that creates a new instance of the class if one doesn't exist and returns it if it does.

  • The constructor of the S...read more

View 1 answer
Discover S. Soni & Co. interview dos and don'ts from real experiences

Q5. What are Design patterns

Ans.

Design patterns are reusable solutions to common software development problems.

  • Design patterns provide a common language for developers to communicate about solutions to common problems.

  • They can improve the quality, maintainability, and scalability of software.

  • Examples include the Singleton pattern, Factory pattern, and Observer pattern.

  • Design patterns can be categorized into three groups: creational, structural, and behavioral patterns.

Add your answer

Q6. Difference between jvm jre and jdk

Ans.

JVM is an environment to run Java programs, JRE is a runtime environment, and JDK is a development kit.

  • JVM stands for Java Virtual Machine and is responsible for executing Java bytecode.

  • JRE stands for Java Runtime Environment and provides a runtime environment for Java programs.

  • JDK stands for Java Development Kit and includes tools for developing Java applications.

  • JDK includes JRE and additional development tools such as compilers and debuggers.

  • JVM is platform-dependent, whil...read more

Add your answer

Q7. Annotations in spring boot used

Ans.

Annotations are used in Spring Boot for various purposes such as mapping requests, defining beans, and handling exceptions.

  • Annotations are used to provide metadata to the Spring framework.

  • They are used to map requests to controller methods using @RequestMapping.

  • Annotations like @Component, @Service, and @Repository are used to define beans.

  • Annotations like @ExceptionHandler and @ControllerAdvice are used for handling exceptions.

  • Annotations like @Autowired and @Value are used ...read more

Add your answer

Q8. What is functional interface

Ans.

Functional interface is an interface with only one abstract method.

  • Functional interface can have any number of default or static methods

  • It is used for lambda expressions and method references

  • Examples include Runnable, Comparator, and Function interfaces

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Java Developer Interview Questions from Similar Companies

3.8
 • 71 Interview Questions
3.8
 • 21 Interview Questions
3.6
 • 18 Interview Questions
4.0
 • 14 Interview Questions
3.3
 • 11 Interview Questions
3.8
 • 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