i
UBS
Filter interviews by
I applied via Indeed and was interviewed in Jul 2024. There was 1 interview round.
Objects of String are stored in the String Pool in Java.
String objects are stored in the String Pool, a special memory area in Java heap memory.
String literals are automatically stored in the String Pool.
String objects created using the new keyword are not stored in the String Pool.
String.intern() method can be used to store a String object in the String Pool.
A bean in Spring Boot is a Java object that is instantiated, assembled, and managed by the Spring IoC container.
Beans are defined in the Spring configuration file or using annotations like @Component, @Service, @Repository, etc.
Beans are singleton by default but can be scoped as prototype, request, session, etc.
Beans are injected into other beans using dependency injection.
Example: @Component annotation is used to defi
Query parameters are used to pass data to a web server through the URL, while path parameters are part of the URL itself.
Query parameters are key-value pairs added to the end of a URL after a '?'
Path parameters are variables within the URL path itself, denoted by curly braces {}
Example of query parameter: www.example.com/api/users?id=123
Example of path parameter: www.example.com/api/users/{userId}
Exceptions are recoverable errors that can be handled in code, while errors are unrecoverable issues that usually result in program termination.
Exceptions are checked at compile time, while errors are unchecked.
Exceptions are subclasses of Throwable, while errors are subclasses of Error.
Examples of exceptions include FileNotFoundException, NullPointerException, while examples of errors include OutOfMemoryError, StackOv
Simple java coding questions on file io, atomic integers etc
HashMap is not thread-safe while ConcurrentHashMap is thread-safe.
HashMap is not thread-safe and can cause ConcurrentModificationException if modified while iterating.
ConcurrentHashMap allows concurrent modifications without causing any exception.
ConcurrentHashMap achieves thread-safety by dividing the map into segments and locking only a portion of the map during updates.
ConcurrentHashMap is suitable for high-concurre...
Java 8 introduced several new features including lambda expressions, streams, functional interfaces, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Streams provide a way to work with sequences of elements and perform operations on them.
Functional interfaces are interfaces with a single abstract method, which can be implemented using lambda expressions.
Default methods a...
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
UBS interview questions for designations
Top trending discussions
I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.
Reverse a string while keeping the position of spaces intact
Split the string into an array of characters
Iterate through the array and reverse the characters while keeping track of space positions
Join the array back into a string
I applied via Indeed and was interviewed in Feb 2024. There was 1 interview round.
Answers to common Java Developer interview questions
1) Concurrency is achieved using multithreading in Java. Use threads, executors, or synchronized blocks. Example: using ExecutorService to run multiple tasks concurrently.
2) Rest API in Springboot: Entity class defines database table, Service class contains business logic, Repository class interacts with database, Controller class handles HTTP requests.
3) Volatile key...
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
Design patterns are reusable solutions to common problems in software design. Singleton ensures a class has only one instance, while factory creates objects without specifying the exact class.
Design patterns are best practices for solving common software design problems.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying ...
Create a Spring Boot program to accept JSON requests and process the data.
Create a Spring Boot application with a REST controller to handle incoming JSON requests.
Use @PostMapping annotation to map the endpoint for accepting JSON requests.
Use @RequestBody annotation to bind the incoming JSON data to a Java object.
Process the JSON data as needed in the controller method.
Return a response as JSON if required.
3 coding questions were given and to be solved only in java
posted on 25 Nov 2022
I applied via Company Website and was interviewed in May 2022. There were 2 interview rounds.
Java coding and apptitude questions
I worked on a project to develop a web application for an e-commerce company.
Developed the front-end using HTML, CSS, and JavaScript
Implemented the back-end using Java and Spring framework
Integrated payment gateway and order management system
Optimized database queries for improved performance
I worked at XYZ Company as a Java Developer.
Developed and maintained Java applications for XYZ Company.
Collaborated with a team of developers to implement new features and fix bugs.
Used Java frameworks like Spring and Hibernate to build robust and scalable applications.
Worked on database design and optimization using SQL.
Participated in code reviews and provided feedback to improve code quality.
Implemented unit tests t...
based on 4 interviews
1 Interview rounds
based on 3 reviews
Rating in categories
Associate Director
3.3k
salaries
| ₹14.8 L/yr - ₹53.5 L/yr |
Assistant Vice President
2.3k
salaries
| ₹16 L/yr - ₹49 L/yr |
Authorized Officer
1.7k
salaries
| ₹9.7 L/yr - ₹28 L/yr |
Exempt NON Officer
1.5k
salaries
| ₹7 L/yr - ₹29.1 L/yr |
ENO
1.4k
salaries
| ₹7 L/yr - ₹25 L/yr |
Morgan Stanley
Goldman Sachs
JPMorgan Chase & Co.
Deutsche Bank