JPMorgan Chase & Co.
10+ British Youth International College Interview Questions and Answers
In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
There are four main ways to position an HTML element: static, relative, absolute, and fixed.
Static positioning is the default and elements are positioned according to the normal flow of the document.
Relative positioning allows an element to be moved relative to its normal position.
Absolute positioning removes an element from the normal flow and positions it relative to its closest positioned ancestor.
Fixed positioning positions an element relative to the viewport, so it stays...read more
What is a package in Java? List down various advantages of packages.
A package in Java is a way to organize related classes and interfaces. It helps in modularizing code and provides access control.
Packages help in avoiding naming conflicts by providing a unique namespace.
They provide access control by using access modifiers like public, private, and protected.
Packages allow for better code organization and maintainability.
They enable code reusability by allowing classes to be easily imported and used in other projects.
Packages facilitate the ...read more
What are the difference between Clustered and a Non-clustered index?
Clustered index determines the physical order of data in a table, while non-clustered index has a separate structure.
Clustered index determines the physical order of data in a table
Non-clustered index has a separate structure that includes a copy of the indexed columns and a pointer to the actual data
A table can have only one clustered index, but multiple non-clustered indexes
Clustered index is faster for retrieving large ranges of data, while non-clustered index is faster fo...read more
What is the Difference Between “Git Pull” and “Git Fetch”?
Git pull combines git fetch and git merge, while git fetch only downloads new data from a remote repository.
Git pull is used to update the local branch with the latest changes from the remote repository.
Git fetch only downloads new data from the remote repository, but does not integrate it into the local branch.
Git pull is a combination of git fetch and git merge commands.
Git fetch is useful to see what changes have been made in the remote repository before merging them into ...read more
What are the different methods of session management in Servlet?
Different methods of session management in Servlet
Cookies
URL Rewriting
Hidden Form Fields
Session Tracking API
HTTP Session
How to optimize website assets loading?
Optimize website assets loading by minimizing file sizes, leveraging caching, and using asynchronous loading.
Minimize file sizes by compressing images, minifying CSS and JavaScript files
Leverage caching by setting appropriate cache headers and using a content delivery network (CDN)
Use asynchronous loading techniques such as lazy loading, deferred loading, and async/defer attributes
Combine and bundle multiple files to reduce the number of requests
Optimize the order of loading ...read more
Difference between reset vs normalize CSS?. How do they differ?
Reset CSS removes all default styles from elements, while Normalize CSS makes styles consistent across different browsers.
Reset CSS sets all CSS properties to their default values, ensuring a clean slate for styling.
Normalize CSS aims to make styles consistent across different browsers by applying a set of default styles.
Reset CSS is more aggressive in removing default styles, while Normalize CSS is more subtle and preserves useful defaults.
Reset CSS is often used when starti...read more
What are the New tags in Media Elements in HTML5?
New tags in Media Elements in HTML5 include <audio> and <video>.
<audio> tag for audio content
<video> tag for video content
Attributes like controls, autoplay, loop, etc. can be used with these tags
How does Spring Boot works?
Spring Boot is a framework that simplifies the development of Java applications by providing default configurations and dependencies.
Spring Boot eliminates the need for manual configuration by providing sensible defaults.
It uses an embedded server, such as Tomcat or Jetty, to run the application.
Spring Boot automatically configures the application based on the dependencies added to the project.
It promotes convention over configuration, reducing boilerplate code.
Spring Boot su...read more
What is CORS in MVC and how it works?
CORS in MVC is Cross-Origin Resource Sharing, a mechanism that allows restricted resources on a web page to be requested from another domain.
CORS is a security feature implemented in web browsers to prevent cross-origin requests by default.
It works by adding specific HTTP headers to the server's response, indicating which origins are allowed to access the resources.
In MVC, CORS can be configured using the 'EnableCors' attribute on controllers or by configuring it in the 'Web....read more
What are the advantages of Web Services?
Web services offer advantages such as interoperability, scalability, reusability, and platform independence.
Interoperability: Web services allow different applications to communicate and share data regardless of the programming languages or platforms they are built on.
Scalability: Web services can handle a large number of requests and can be easily scaled up or down to meet changing demands.
Reusability: Web services promote code reuse as they can be accessed by multiple appli...read more
What is a z-index, how does it function?
z-index is a CSS property that controls the stacking order of elements on a webpage.
z-index is used to specify the order in which elements are displayed on top of each other.
Higher z-index values bring elements to the front, while lower values push them to the back.
Elements with a higher z-index will overlap elements with a lower z-index.
z-index only works on positioned elements (position: absolute, position: relative, or position: fixed).
Write a Java 8 program to iterate a Stream using the forEach method?
A Java 8 program to iterate a Stream using the forEach method.
Create a Stream object from a collection or array
Use the forEach method to perform an action on each element of the Stream
The action can be a lambda expression or a method reference
What is dependency Injection?
Dependency Injection is a design pattern where the dependencies of a class are provided externally rather than being created within the class itself.
Dependency Injection helps in achieving loose coupling between classes.
It allows for easier testing and maintenance of code.
In Spring Boot, dependencies are injected using annotations like @Autowired.
Example: In a Spring Boot application, if a class requires a database connection, the connection object can be injected into the cl...read more
What are Java 8 streams?
Java 8 streams are a sequence of elements that can be processed in parallel or sequentially.
Streams provide a functional programming approach to process collections in Java.
They allow for concise and expressive code.
Streams can be used to filter, map, reduce, and perform other operations on data.
Example: List
numbers = Arrays.asList(1, 2, 3, 4, 5); numbers.stream().filter(n -> n % 2 == 0).forEach(System.out::println); This example filters even numbers from the list and prints ...read more
What is SQL injection?
SQL injection is a web security vulnerability that allows an attacker to manipulate a database query to execute unauthorized actions.
SQL injection occurs when user-supplied data is not properly validated or sanitized before being used in an SQL query.
Attackers can exploit this vulnerability to bypass authentication, retrieve sensitive data, modify or delete data, or even execute arbitrary commands.
To prevent SQL injection, use parameterized queries or prepared statements, inp...read more
Explain in brief the role of different MVC components?
MVC components include Model, View, and Controller. Model represents data and business logic, View displays the data, and Controller handles user input and updates the Model and View.
Model: Represents data and business logic
View: Displays the data to the user
Controller: Handles user input and updates the Model and View
Explain @RestController annotation in Sprint boot?
The @RestController annotation in Spring Boot is used to mark a class as a RESTful controller.
It combines the @Controller and @ResponseBody annotations.
It eliminates the need for annotating each method with @ResponseBody.
It automatically serializes the return value of the methods into JSON/XML response.
It is commonly used to build RESTful web services in Spring Boot.
Explain a use case for Docker?
Docker is a containerization platform that allows developers to package applications with their dependencies for easy deployment and scalability.
Docker enables developers to create lightweight, isolated containers that can run on any operating system.
It simplifies the deployment process by ensuring that the application and its dependencies are bundled together, eliminating compatibility issues.
Docker allows for easy scaling of applications by enabling the creation of multiple...read more
More about working at JPMorgan Chase & Co.
Top Full Stack Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month