Add office photos
Employer?
Claim Account for FREE

Sterlite Technologies

3.8
based on 2.1k Reviews
Filter interviews by

Sony Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. What is Singleton Design Pattern? Can we create a clone of an object from singleton class?

Ans.

Singleton Design Pattern ensures only one instance of a class exists. No, we cannot create a clone of an object from singleton class.

  • Singleton pattern restricts the instantiation of a class to one object.

  • It is used when only one object is required to coordinate actions across the system.

  • The instance is created only when it is requested for the first time.

  • The constructor of the singleton class is private.

  • Clone method is not supported in singleton pattern.

Add your answer

Q2. Version of Java and Spring boot you are using in your current project?

Ans.

We are using Java 11 and Spring Boot 2.4.3 in our current project.

  • Java 11 provides better performance and security features compared to previous versions.

  • Spring Boot 2.4.3 offers improved support for Kotlin and GraalVM.

  • We are also using Spring Data JPA for database access and Spring Security for authentication and authorization.

Add your answer

Q3. What is Maven ? what are different cycles in Maven

Ans.

Maven is a build automation tool used primarily for Java projects. It manages dependencies and builds the project.

  • Maven is based on the concept of POM (Project Object Model) which describes the project dependencies, build process, and other configurations.

  • Maven has different cycles such as validate, compile, test, package, verify, install, and deploy.

  • The validate cycle checks if the project is correct and all necessary information is available.

  • The compile cycle compiles the s...read more

Add your answer

Q4. What are triggers?What are stored procedures?

Ans.

Triggers are database objects that automatically execute in response to certain events. Stored procedures are precompiled SQL statements.

  • Triggers are used to enforce business rules or to audit changes to data.

  • Stored procedures are used to encapsulate frequently used SQL statements for reuse and to improve performance.

  • Triggers can be used to update related tables when a record is inserted, updated, or deleted.

  • Stored procedures can be used to perform complex data manipulations ...read more

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

Q5. Write a Program for reverse sort of keys in HashMap.

Ans.

Program to reverse sort keys in HashMap

  • Create a List from the keySet() of the HashMap

  • Sort the List in reverse order using Collections.sort()

  • Iterate through the sorted List and add the keys to a new LinkedHashMap

  • Return the LinkedHashMap

Add your answer

Q6. various Springboot Annotations.

Ans.

Springboot annotations are used to simplify the development process and provide additional functionality.

  • Annotations like @RestController and @RequestMapping are used to create RESTful web services.

  • @Autowired is used for dependency injection.

  • @Transactional is used to manage transactions.

  • @Component is used to mark a class as a Spring component.

  • @Value is used to inject values from properties files or environment variables.

  • @Scheduled is used to schedule tasks to run at specific ...read more

Add your answer

Q7. joins in SQL

Ans.

Joins in SQL are used to combine data from two or more tables based on a related column.

  • Joins are used to retrieve data from multiple tables in a single query

  • Types of joins include inner join, left join, right join, and full outer join

  • Join conditions are specified using the ON keyword and can include multiple conditions

  • Aliases can be used to simplify the syntax of join queries

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 Senior Software Engineer Interview Questions from Similar Companies

3.4
 • 70 Interview Questions
3.5
 • 24 Interview Questions
4.0
 • 20 Interview Questions
3.9
 • 11 Interview Questions
3.4
 • 10 Interview Questions
3.6
 • 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