MUFG
ZS Interview Questions and Answers
Q1. How to ensure we use the bean before it is destroyed
Use a bean before it is destroyed by implementing a pre-destroy method
Implement a method annotated with @PreDestroy in the bean class
This method will be called before the bean is destroyed
Perform any necessary cleanup or final operations in this method
Q2. How to apply multiple primary keys to an entity in Hibernate
Use @IdClass annotation to apply multiple primary keys to an entity in Hibernate
Create a separate class for composite primary key
Use @IdClass annotation on the entity class to reference the composite primary key class
Define the primary key fields in both the entity class and the composite primary key class
Q3. Functional interface - what is use of static and default in real time
Static and default methods in functional interfaces provide utility methods and default implementations for interface methods in real-time applications.
Static methods in functional interfaces can be used for utility methods that are not tied to a specific instance of the interface.
Default methods in functional interfaces provide default implementations for interface methods, allowing for backward compatibility when new methods are added to the interface.
In real-time applicati...read more
Q4. Stream api - what is intermediate and terminal operator
Intermediate operators transform or filter the stream elements, while terminal operators produce a result or side effect.
Intermediate operators include filter(), map(), sorted(), distinct(), etc.
Terminal operators include forEach(), collect(), reduce(), count(), etc.
Intermediate operators are lazy and do not execute until a terminal operator is called.
Terminal operators trigger the stream processing and produce a result or side effect.
Q5. How to use a POJO as a key in a Hashmap
Use the POJO's attributes that define equals() and hashCode() methods as the key in the Hashmap.
Ensure the POJO class overrides equals() and hashCode() methods.
Create an instance of the POJO and use it as the key in the Hashmap.
Q6. Call SQL procedure from code
To call an SQL procedure from code, use the appropriate syntax and connection to the database.
Use the appropriate SQL command to call the procedure (e.g. EXEC or CALL).
Ensure you have a connection to the database established in your code.
Pass any required parameters to the procedure when calling it.
Handle any return values or output parameters as needed.
Q7. What are the steps involved in executing a bond issurance
Steps involved in executing a bond issuance
1. Determine the purpose and amount of the bond issuance
2. Select an underwriter to help sell the bonds
3. Prepare a disclosure document outlining the terms of the bond
4. Obtain credit ratings from rating agencies
5. Market the bond to potential investors
6. Price the bond based on market conditions
7. Close the bond issuance and transfer funds to the issuer
Q8. How to book accruals?
Accruals are booked by recognizing expenses incurred but not yet paid for.
Accruals are recorded by debiting an expense account and crediting a liability account.
Accruals ensure that expenses are matched with the revenue they generate in the same accounting period.
Accruals are reversed in the following accounting period when the actual payment is made.
Examples of accruals include accrued salaries, accrued interest, and accrued utilities.
Accruals are important for accurate fina...read more
Q9. what is Private Equity
Private equity is a type of investment where funds are raised from institutional and high-net-worth investors to acquire equity ownership in companies.
Private equity firms typically buy out existing companies or invest in growing businesses
Investors in private equity funds are typically institutional investors, pension funds, and wealthy individuals
Private equity investments are illiquid and have a long-term investment horizon
Private equity firms aim to improve the performanc...read more
Top HR Questions asked in ZS
Interview Process at ZS
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month