filmov
tv
HCL Technologies-Interview Questions - Technical Round 1 - for JAVA Full Stack Developer [Selected]
Показать описание
in this lecture - we will discuss the HCL Technologies-Interview Questions - Technical Round 1 - for JAVA Full Stack Developer
Q. Do you have the idea on the difference between Spring and Spring boot?
Ans;-
Spring – use JavaEE framework for building application
Spring Boot – use to develop REST APIs
Spring – Primary feature is Dependency injection
Spring boot – Autoconfiguration – it automatically configure the classes based on the requirement
Spring – Required More Configuration
Spring Boot – Less Configuration
Spring – More Boiler Code
Spring Boot – Reduces Boiler Code
Q. Which annotation you have used in your spring boot application to build Rest API?
Ans:-
@Entity , @RestController, @RequestMapping, @Autowired, @PostMapping("/url")
@GetMapping("/url"), @Service, @pathvariable(" "), @Valid, @RequestBody()
Q. How you will the crud operation?
Q. How to use custom query for fetching data from database.
Q. What is Actuator?
Ans:-
spring boot actuator we use to monitor our application in different environment
so that why it is one of the popular feature of spring boot and it is one the key component of spring boot. It provides different end points through which we can check the status of our application
Q What is thread and also explain the life cycle of the thread?
Ans:-
A thread is a single sequential flow of control within a program.
Q. What is Lock in java and how it different from Synchronized block?
Ans-
Synchronized block:- It doesn't provide any guarantee of sequence in which the waiting thread will be access.
Lock:- the Lock interface handles it mean we can achieve result in sequence order
Synchronized block:- It doesn't have any options of time when the lock is not granted.
Lock:- The Lock interface provides such options at the time of granting the lock.
Synchronized block:-:- It can be contained within a single method.
Lock:- The lock() and unlock() methods of the interface can be called in different methods.
Q. What Is Spring Security?
Ans:-
Spring Security is a separate module of the Spring framework that focuses on providing authentication and authorization methods in Java applications. It also takes care of most of the common security vulnerabilities such as CSRF attacks.
To use Spring Security in web applications, we can get started with the simple annotation @EnableWebSecurity.
Q. What is Spring profiler?
Q. Do you have any question or query for me?
Q. Do you have the idea on the difference between Spring and Spring boot?
Ans;-
Spring – use JavaEE framework for building application
Spring Boot – use to develop REST APIs
Spring – Primary feature is Dependency injection
Spring boot – Autoconfiguration – it automatically configure the classes based on the requirement
Spring – Required More Configuration
Spring Boot – Less Configuration
Spring – More Boiler Code
Spring Boot – Reduces Boiler Code
Q. Which annotation you have used in your spring boot application to build Rest API?
Ans:-
@Entity , @RestController, @RequestMapping, @Autowired, @PostMapping("/url")
@GetMapping("/url"), @Service, @pathvariable(" "), @Valid, @RequestBody()
Q. How you will the crud operation?
Q. How to use custom query for fetching data from database.
Q. What is Actuator?
Ans:-
spring boot actuator we use to monitor our application in different environment
so that why it is one of the popular feature of spring boot and it is one the key component of spring boot. It provides different end points through which we can check the status of our application
Q What is thread and also explain the life cycle of the thread?
Ans:-
A thread is a single sequential flow of control within a program.
Q. What is Lock in java and how it different from Synchronized block?
Ans-
Synchronized block:- It doesn't provide any guarantee of sequence in which the waiting thread will be access.
Lock:- the Lock interface handles it mean we can achieve result in sequence order
Synchronized block:- It doesn't have any options of time when the lock is not granted.
Lock:- The Lock interface provides such options at the time of granting the lock.
Synchronized block:-:- It can be contained within a single method.
Lock:- The lock() and unlock() methods of the interface can be called in different methods.
Q. What Is Spring Security?
Ans:-
Spring Security is a separate module of the Spring framework that focuses on providing authentication and authorization methods in Java applications. It also takes care of most of the common security vulnerabilities such as CSRF attacks.
To use Spring Security in web applications, we can get started with the simple annotation @EnableWebSecurity.
Q. What is Spring profiler?
Q. Do you have any question or query for me?