Timestamps - 0:00 Introduction 0:50 Project Work 1:27 List al = Arrays.asList(1,3,2,4,3,1,2); Output - {4,3,2,1}
2:50 Output Based Question 4:09 SQL question 5:28 Use of default keyword vs default method 6:23 How to create Custom Exception 7:49 PUT vs Patch 8:43 Path Param vs Query Param 10:30 @JsonIgnore vs @Transient 11:56 @Controller vs @RestController 12:40 How to provide Role based authentication 14:22 Authentication vs Authorization 16:35 Unique vs Composite Key 18:36 @Mock vs @InjectMocks 20:20 verify() in mockito 21:17 map vs flat map 24:05 Use of @JoinColumn 25:15 select selected columns in JPA 26:48 Use of Kubernetes
The impl of security in role based access control is an older version. In later versions after Spring boot 2.7 we make bean of SecurityFilterChain and configure other components
@@debjeetroy i really appreciate what you are doing, its very helpful for many of us trying to clear an interview. But i think the answers could have been more researched. You don’t need to throw any exception from your custom exception class as I understand. Also a response from a @controller class always need a view to be displayed, whereas a @restcontroller class response doesn’t need a view, you can simply hit the url and json response will be displayed in browser unlike @controller class.
@@sagardas09 Thank you for your feedback. I will surely work on it. As per my knowledge if you are making your own custom exception and if you are not using @RestControllerAdvice feature of Spring boot to handle exceptions then you have to throw exception from that custom class to inherit all the properties and make that class eligible to get thrown from other class when thrown from method definition using throw new class("message"). I hope I understood your query properly and it will be good if you can give a use case when we are creating custom exception class but not extending it. I will also learn that. Thank you. .... And yes difference between Controller and Rest controller can be many and yours one is right as well. Thank you for explaining it.
@@debjeetroy a @restcontrolleradvice or @controlleradvice is for globalexception handler. Here you are talking about a custom exception class. No need to get into spring mvc here i guess its plain old java It is simply like this… class MyException extends Exception { Public MyException(String msg){ super(msg)}}
@@debjeetroy a @restcontrolleradvice is to be used creating a global exception handler. There may be more than one custom/normal exceptions defined in a global exception handler. But here we are talking about a custom exception handler, its simply plain old java. No need to bring spring concepts here. Its like.. class MyException extends Exception{ public MyException (String msg){ super(msg)}}
No need to put extra effort for showing on ide. Let the interviewees practice on their own. Your content is very good and keep publishing more videos like this .
Timestamps -
0:00 Introduction
0:50 Project Work
1:27 List al = Arrays.asList(1,3,2,4,3,1,2);
Output - {4,3,2,1}
2:50 Output Based Question
4:09 SQL question
5:28 Use of default keyword vs default method
6:23 How to create Custom Exception
7:49 PUT vs Patch
8:43 Path Param vs Query Param
10:30 @JsonIgnore vs @Transient
11:56 @Controller vs @RestController
12:40 How to provide Role based authentication
14:22 Authentication vs Authorization
16:35 Unique vs Composite Key
18:36 @Mock vs @InjectMocks
20:20 verify() in mockito
21:17 map vs flat map
24:05 Use of @JoinColumn
25:15 select selected columns in JPA
26:48 Use of Kubernetes
in flatmap concept you can write this way also --> List result= lst.stream().flatMap(s->Arrays.stream(s.split(""))).collect(Collectors.toList());
Yes.. This way is also possible!!
The impl of security in role based access control is an older version. In later versions after Spring boot 2.7 we make bean of SecurityFilterChain and configure other components
You seem to be using this
your customexception class must extend Exception class, then only the parameterized super call makes sense.
Yes you are right
@@debjeetroy i really appreciate what you are doing, its very helpful for many of us trying to clear an interview. But i think the answers could have been more researched.
You don’t need to throw any exception from your custom exception class as I understand.
Also a response from a @controller class always need a view to be displayed, whereas a @restcontroller class response doesn’t need a view, you can simply hit the url and json response will be displayed in browser unlike @controller class.
@@sagardas09 Thank you for your feedback. I will surely work on it. As per my knowledge if you are making your own custom exception and if you are not using @RestControllerAdvice feature of Spring boot to handle exceptions then you have to throw exception from that custom class to inherit all the properties and make that class eligible to get thrown from other class when thrown from method definition using throw new class("message"). I hope I understood your query properly and it will be good if you can give a use case when we are creating custom exception class but not extending it. I will also learn that. Thank you. .... And yes difference between Controller and Rest controller can be many and yours one is right as well. Thank you for explaining it.
@@debjeetroy a @restcontrolleradvice or @controlleradvice is for globalexception handler. Here you are talking about a custom exception class. No need to get into spring mvc here i guess its plain old java
It is simply like this…
class MyException extends Exception {
Public MyException(String msg){
super(msg)}}
@@debjeetroy a @restcontrolleradvice is to be used creating a global exception handler. There may be more than one custom/normal exceptions defined in a global exception handler.
But here we are talking about a custom exception handler, its simply plain old java. No need to bring spring concepts here.
Its like..
class MyException extends Exception{
public MyException (String msg){
super(msg)}}
Can u please make video consisting of the points which need to be studied for java 7 plus year experience..
Yes Yoshita... Sure
Fun-tastic to watch!!!
are they particular asking to use java 8 stream,lambda.. for solving competitive coding questions?
Yes.. Any questions that can be done using streams they are focusing to do using streams only.
Thanks brother, it was really helpful.
I am glad you liked it
Need you help to restart my career after break of 5 year with 7 years of java struts experience
Any help is really appreciated
We can have conversation.. You can book 1:1 call from my linkedin profile
Wasn't there a coding assessment for Nagarro before Technical Round ?
I went through referral. It didn't happened for me
@@codeAtoZ good luck bro. And good work.
@@codeAtoZ does you appear for the next round?
at 15:13 it will the print max salary without any doubt
Hi , was any dsa questions asked ? Any further round ?
That didn't focus on advance level dsa. Basic dsa questions on Map, Collections, Array and String will help.
After explaining, do practical on IDE plz
Sure.. As it was just interview experience so didn't explained practically.
@@codeAtoZ
Ok!! where do u work? i need a job very much in IT field... could u help me plz? It has been 2 yrs of completing my btech
No need to put extra effort for showing on ide. Let the interviewees practice on their own. Your content is very good and keep publishing more videos like this .
Informative 👍
Bhai kitne ka package laga ? Remote option bhi mila hai kya ?
It varies from project to project for remote option. Package is 20+
@@suryapratap8386 Thank you for your kind words.
I gave 3 round 1 Online test and 2 technical rounds and feedback was good but got rejected bcos they wanted AWS dumb company wasted 3 days 😕
Great Content..
Thank you 🙏
Hay bhaiya please guide
i am cdac noida mca 2025 batch student .
Hi Yogesh... May I know what help you need? I will be more than happy to help you.
Hi Yogesh... May I know what help you need? I will be more than happy to help you.
@@codeAtoZ bhaiya yhi per messagae kru ya ..!
You can ping in linked in.. Debjeet Roy is name there
Thumbnail se ambati raidu laga
😂😂