Capita
30+ Kanak Hospital & Medical Research Centre Interview Questions and Answers
You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols ...read more
Reverse a given stack of integers using recursion.
Note:
You are not allowed to use any extra space other than the internal stack space used due to recursion. You are not allowed to...read more
What are the @RequestMapping and @RestController annotation in Spring Boot used for?
How many types of memory areas are allocated by JVM?
How would you differentiate between a String, StringBuffer, and a StringBuilder?
Q6. How to display values fetch from a table with alternate value
Display values from a table with alternate value
Use a loop to iterate through the table values
Use an if-else statement to check for alternate values
Display the alternate values using a different formatting or color
Consider using CSS or JavaScript to enhance the display
How to find the number of rows and eliminate duplicate values in a DB2 table?
What are the major differences between RequestMapping and GetMapping?
What are some standard Java pre-defined functional interfaces?
What are the advantages of using the Optional class?
What is the difference between JDK, JRE, and JVM?
What are the features of a lambda expression?
What are the concurrency strategies available in hibernate?
Q14. Where did u implemented oops concepts in your project? Stream api, Map in Collections
Yes
Implemented OOPs concepts in the project using Stream API
Utilized Map in Collections to implement OOPs principles
Used Stream API to apply functional programming concepts in the project
Q15. How to remove low values while fetching data from table in DB2
Use SQL query with WHERE clause to filter out low values while fetching data from DB2 table
Use SELECT statement to fetch data from table
Add WHERE clause with condition to filter out low values
Example: SELECT * FROM table_name WHERE column_name > 10
Use ORDER BY clause to sort the data in ascending or descending order
Q16. Write controller to serve POST request for a rest call in spring
A controller to handle POST requests in a Spring REST API.
Create a new class annotated with @RestController
Define a method in the class annotated with @PostMapping
Use @RequestBody annotation to bind the request body to a parameter
Implement the logic to handle the POST request
Return the response using ResponseEntity
What is the use of @Transactional annotation in spring JPA ?
When can you use super keyword?
What is meant by normalization and denormalization?
What is Correlated Subquery in DBMS?
How does Spring Boot works?
Write a query that joins two tables A and B having common attribute ID and selects records(ID_NAME) that have
matching ID values in both tables .
How MVC works in Spring?
Mention the way of highlighting as well as putting a CURSOR to use in a COBOL program.
Can you tell the difference between setMaxResults() and setFetchSize() of Query?
Explain brief about Session interface used in hibernate?
Q27. Annotations used in web services, pagination, exception handling in spring
Annotations used in web services, pagination, exception handling in Spring
Web services in Spring can be annotated with @RestController or @Controller
Pagination can be achieved using @PageableDefault and @PageableParam
Exception handling can be done using @ExceptionHandler and @ControllerAdvice
Mention a few features of Spring Boot.
Explain Spring Actuator and its advantages.
Q31. Usage of @Transactional annotation in spring JPA
The @Transactional annotation is used in Spring JPA to manage transactions in database operations.
The @Transactional annotation is used to mark a method or class as transactional.
It ensures that all database operations within the annotated method or class are executed within a single transaction.
If an exception occurs, the transaction is rolled back, and changes made within the transaction are not persisted.
The @Transactional annotation can be used with different propagation ...read more
Difference between Abstract class and Interface.
Q33. Sort using JCL and COBOL
Sorting using JCL and COBOL
JCL can be used to submit a COBOL program for sorting
COBOL program can use SORT verb to sort data
Sorting can be done based on specific fields or criteria
COBOL program can use SORT-RETURN to check the status of the sort operation
Q35. Cursor in DB2
Cursor is a database object used to manipulate data in a result set.
Cursor is used to fetch a set of rows from a result set.
It allows the application to move forward and backward through the result set.
Cursor can be declared and opened in SQL.
It can be used to update or delete rows in a result set.
Cursor can be closed explicitly or implicitly.
Top HR Questions asked in Kanak Hospital & Medical Research Centre
Top Software Consultant Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month