Java Mock Interview - Java interview questions and answers for experienced | Top Spring Boot QNA

Поделиться
HTML-код
  • Опубликовано: 25 июн 2024
  • This Live java mock interview contains a variety of Java interview questions from Java, JPA, Hibernate, Spring and Spring Boot. In this specific video we will discuss few of the most Asked interview questions in Spring Boot, Rest Webservices and JPA.
    Candidate Info : Name: K R Lavanya RAMACHANDRAN
    Profile: Java Developer
    Years Of Experience: 6+
    Work Location: USA
    Keyskills: Java, Microservices, Spring, Spring Boot, Restful Webservices, Hibernate, JPA, Spring Data
    Timestamp :
    ================
    00:00:00 - Introduction
    00:03:03 - Q1: What is a Marker interface in java ?
    00:08:14 - Q2: Tell me 5 Spring Exceptions that you came across.
    00:13:08 - Q3: Tell me 5 spring Annotations that you have used ? (Excluding the stereotype annotations)
    00:16:30 - Q4: Is it required to write @Repository annotations in spring data JPA?
    00:19:52 - Explain the Spring Data Project and the hierarchy ?
    00:26:49 - Q5: Use of @NoRepositoryBean in spring boot ? Can we write @NoRepositoryBean on top of our Repositories interfaces ?
    00:31:26 - Q6: What is a java config file and What is it' s limitations?
    00:36:23 - How a CGLIB Proxy works with @Bean?
    00:40:08 - Q7: @Component vs @Bean . What is the difference between creating a bean with @Bean and creating a bean with @Component ?
    00:42:49 - Q8: What is a BeanFactoryPostProcessor?
    00:46:13 - Q9: Bean Factory Post Processor Code walkthrough
    00:56:38 - Q10: What do you mean by a @Transactional Annotation and explain the Transactional Propagation in spring?
    01:00:21 - Transactional Propagation Explained !
    01:07:55 - Q11: Update vs Merge | Difference between update and merge method in JPA / Hibernate?
    01:12:23 - Q12: application.properties vs application.yaml , Which will load first ?
    01:15:03 - Q13: How the dispatcher servlet is set up in a spring boot project?
    01:16:21 - how the dispatcher servlet in spring boot gets auto-configured?
    01:20:21 - Q14: How to create custom Java Exceptions?
    01:20:52 - CompileTime Vs RunTime Exceptions . Checked vs Unchecked Exceptions in Java
    01:21:30 - Q15: How will you handle exceptions in spring?
    01:22:33 - Q16: Explain the need of a global exception handler in spring boot ?
    01:23:28 - Q17: Difference between @ControllerAdvice and @RestControllerAdvice?
    01:23:53 - Q18: How will you handle a Bad gateway exception when thrown from a rest client ?
    01:25:57 - Q19: What is ThreadLocal in Java? Tell me a real time scenario if you have used it ever.
    01:27:39 : Spring SecurityContext scope explained !
    01:35:54 - Final Words
    ========
    FREE :
    Watch more interviews like this follow my "Java Interview prep" playlist:
    • Java interview questio...
    =========
    Useful links :
    Update Vs Merge walkthrough
    • 4 Must Know Hibernate ...
    Spring Security step by step
    • Spring Security Course...
    Exception Handling in spring mvc
    • Spring MVC - Exception...
    ==========
    Category :
    Java Interview
    Java interview questions and answers for experienced
    spring interview questions
    spring boot interview questions
    java interview questions coding
    Useful playlist :
    spring core
    www.youtube.com/watch?v=r2Q0J...
    spring mvc
    www.youtube.com/watch?v=zCHrZ...
    spring mvc intermediate
    www.youtube.com/watch?v=40YaL...
    Spring JDBC
    www.youtube.com/watch?v=5j_vh...
    spring live project
    www.youtube.com/watch?v=m_b_F...
    For more free/paid courses visit
    www.seleniumexpress.com
    Email : seleniumexpress@gmail.com
    Course Enquiry : info@seleniumexpress.com
    FB: / seleniumexpress
    Make sure to join my private Facebook page (Ask me here)
    “SeleniumExpress - Support"
    / 18700. .
    Follow me on Insta
    / selenium_ex...category :
    Java interview questions and answers for experienced
    spring interview questions
    java interview questions coding
    #javainterviewquestionsandanswers
    #springbootinterviewquestions
    Useful playlist :
    spring core
    www.youtube.com/watch?v=r2Q0J...
    spring mvc
    www.youtube.com/watch?v=zCHrZ...
    spring mvc intermediate
    www.youtube.com/watch?v=40YaL...
    Spring JDBC
    www.youtube.com/watch?v=5j_vh...
    spring live project
    www.youtube.com/watch?v=m_b_F...
    For more free/paid courses visit
    www.seleniumexpress.com
    Email : seleniumexpress@gmail.com
    FB: / seleniumexpress
    Make sure to join my private Facebook page (Ask me here)
    “SeleniumExpress - Support"
    / 18700. .
    Follow me on Insta
    / selenium_ex. .

Комментарии • 154

  • @KalathilAjayMenon
    @KalathilAjayMenon 2 года назад +90

    I have been in the Industry for many years and every year I see something new coming out. The presentation over here has been really nice. Especially the part where with the explanation the code is also demo'ed. Helps to recollect something forgotten. Well done guys.

    • @SeleniumExpress
      @SeleniumExpress  2 года назад +1

      Thank you, Ajay !

    • @ajaykathwate7595
      @ajaykathwate7595 10 месяцев назад

      @@SeleniumExpress can you please take the Java + Springboot Mock interviews for freshers?

  • @namitatare9387
    @namitatare9387 2 года назад +10

    And:When there is a requirement to implement a interface without any specific functionality,marker interface can be used.. Abhilash sir, ur example was superb 👍

  • @courageoghogho7402
    @courageoghogho7402 2 года назад +6

    This lady is awesome. Wow. She is really a motivation to me...I wish I can answer questions flawlessly like this.

  • @ytsub-uk8mk
    @ytsub-uk8mk Год назад +1

    Power-packed of knowledge. Salute Abhilash and Lavanya.

  • @ramanjaneyulukommuri5905
    @ramanjaneyulukommuri5905 2 года назад +24

    It's big great session that was having huge amount of information in one and half hour video has presented to us and motivates to learn more and more which makes very simple and easier to be a professional and achieve the success and reach the goals that what we have pointed to achieve..
    Such a Great and awesome work effort made by both of you and we are expecting one or more sessions like this to get the more knowledge like the way your explaining the questions and answers....👏👏👏👏👏👏👏👏👏👏👏👏

  • @maddy_6968
    @maddy_6968 Год назад +3

    This us my first time on your channel...I really liked this setup where you not just ask questions but help viewers like me to understand the concepts better this shows your true motto is to spread knowledge and not just create video. Thanks again and wish you best luck.

  • @sumithulsurkar2436
    @sumithulsurkar2436 Год назад +1

    You are awesome man, Thanks for taking efforts for the dev community around the globe

  • @walterwhite7167
    @walterwhite7167 Год назад

    Amazing content! Can't wait for new series. Thanks a lot!

  • @ripalbhagat2785
    @ripalbhagat2785 2 года назад +2

    This video is very helpful for my preparation, thanks for uploading !

  • @abhrajitnandy
    @abhrajitnandy 2 года назад

    You are THE GURU of development ❤️

  • @JIeshaz
    @JIeshaz Год назад +1

    A brilliant interview to refresh spring knowledge

  • @streetchronicles5693
    @streetchronicles5693 Год назад

    Ok the side by side coding as she answers is insane value. Great videos. Subbed

  • @Neerajkushwaha-uz8wo
    @Neerajkushwaha-uz8wo Год назад +3

    This is the best presentation i have ever seen by an Indian youtuber. Thanks for providing such a great content❤

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 Год назад

    Every Java developer should watch this video. Thank you Abhilash and lavanya for this video

  • @TrupsWorld
    @TrupsWorld 2 года назад

    Absolutely amazing 🎉🎉 thank you @Abhilash for such deep and in detail content 🙏

  • @Believer...
    @Believer... Год назад

    Huge Respect for this massive valuable content.

  • @KPSinghx
    @KPSinghx 2 года назад +1

    i have learned alot with these mock interview , wating for more mock interview , like AWS for java developer

  • @kirankumarmothukuri7660
    @kirankumarmothukuri7660 Год назад

    Quality of interview , Demonstrating wile explaining is awesome.

  • @srinivassri9335
    @srinivassri9335 2 года назад

    Thanks for all your efforts. This really helps us.

  • @kshitijsingh1990
    @kshitijsingh1990 Год назад

    Instantly subscribed. Quality content!

  • @kesavenvulliamay4637
    @kesavenvulliamay4637 2 года назад +1

    Very Informative !

  • @vijaybhaskar3169
    @vijaybhaskar3169 2 года назад +1

    Both of you have done a fabulous job, i can understand how much effort you have put to make such a wonderful and useful video with crystal clear explanation. I am impressed with the content. Keep it up. I will be looking forward to your future videos.

  • @bynuful
    @bynuful Год назад

    Perfect !! Loved every minute of it 👏👏

  • @mousumisaha4525
    @mousumisaha4525 2 года назад

    Great session. Thank you

  • @commonman8540
    @commonman8540 Год назад +1

    Abhilash, Really nice, I can understand how much effort you have put to make such a useful video with clear explanation. Its motivates to learn more , Keep it up.

  • @robertoenriquechavezrodrig731
    @robertoenriquechavezrodrig731 2 года назад +2

    Amazing interview. Thankyou very much! Some questions and answers were very advanced, but it motivates me to keep learning. Thank you and God bless you! Regards from Russia! Tuesday, May 31st, 2022.

  • @prasannajitsamal3544
    @prasannajitsamal3544 Год назад

    That is a nice video in terms of learning point of view, thank you 🙏 both of u actually, keep it up and we need more videos like this...

  • @aditigupta5324
    @aditigupta5324 2 года назад +1

    One of the best channels

  • @mangeshwagh1842
    @mangeshwagh1842 Год назад +4

    Superb Abhilash...! Java developer community will be proud of you. Few Suggestions : 1) idea of doing animation is too good. That is helping a lot. Just feel like watching a movie.. 2) Please post more videos on spring boot microservices, docker, kubernetes. Thank you.

  • @ashwinkumar09uvce
    @ashwinkumar09uvce Год назад

    Interview questions and concepts explained are very good.. refreshed my knowledge and helped me Thanks !! Waiting for more mock interview sessions 💖

  • @harishtyagi415
    @harishtyagi415 Год назад

    Thank you very much Sir, after watching your all mock interview videos. , today I have 6 companies offer letter in my hand.

  • @saravanansivaji3832
    @saravanansivaji3832 Год назад +4

    The answers discussed @ 1:05:50 for transaction propagation levels NOT_SUPPORTED vs NEVER is wrong. For propagation level NEVER only throws exception when there is an active transaction. For NOT_SUPPORTED, If a current transaction exists, first Spring suspends it, and then the logic is executed without a transaction (non-transactional way)

  • @Vithal_Nivargi
    @Vithal_Nivargi Год назад +1

    Amazing sir ❤️ please make one more video!

  • @nkwejusticemapoulo2208
    @nkwejusticemapoulo2208 4 месяца назад

    The best mock interview ever!. Please do more interviews with her.

  • @ravi46826
    @ravi46826 Год назад

    Lavanya is so intact... on point I wish I could have such a cool and clear trainer/mentor....☺️☺️

  • @sadvikgowda6474
    @sadvikgowda6474 2 года назад +1

    Very informative....

  • @sure.krishna
    @sure.krishna Год назад +1

    We want more videos like this, please do make...

  • @vishalkumarsonawane6772
    @vishalkumarsonawane6772 2 года назад

    Great

  • @juiliraut9413
    @juiliraut9413 Год назад

    Marvellous.

  • @ajaycsenit
    @ajaycsenit Год назад

    The thing you pointed out about ThreadLocal I was just thinking the same when Lavanya was giving yhat example of keeping the authentication object inside the ThreadLocal :), Thanks for reclassification.

  • @AnitaSingh-fg2ef
    @AnitaSingh-fg2ef 2 года назад

    Great Explanation. Thank you so much Abhilash

  • @rajmohanshekhawat1873
    @rajmohanshekhawat1873 2 года назад

    That's was awesome.. Now iam able to relate things easily.. Thank you 🤍

  • @shashikantkumar9019
    @shashikantkumar9019 2 года назад

    Really Nice Session

  • @sripolisettys
    @sripolisettys 2 года назад

    Awesome session

  • @vaghii6731
    @vaghii6731 2 года назад +2

    U are great abhilash thanks for these kind of interview sessions

  • @josephnairpudupermanil8679
    @josephnairpudupermanil8679 2 года назад

    Awesome explanation bro..

  • @robertshakhrai9481
    @robertshakhrai9481 Год назад +1

    good job, especially part when you show code on your screen, it helps to understand things better

  • @aayush5474
    @aayush5474 2 года назад

    Very helpful

  • @jayalakshmi1369
    @jayalakshmi1369 Год назад

    Very clear explanation Lavanya

  • @smratikushwah6692
    @smratikushwah6692 7 месяцев назад

    Great video, thanks a lot 😊

  • @BineetMohanty
    @BineetMohanty 2 года назад

    Appreciate Abhishek !

  • @Sundharamurali
    @Sundharamurali Год назад +8

    Problem with having a normal interface in place of a marker interface:
    Our intention is just to provide metadata to the JRE. I assume you are mentioning the interface with abstract methods.
    If we use the interface with abstract methods instead of a marker interface, we have to implement those methods in the class implementing it(Which is not our intention).

  • @ruhikumari8083
    @ruhikumari8083 Год назад

    Please do more series like this 👍

  • @dheebanm9158
    @dheebanm9158 2 года назад

    Extraordinary Wrok sir

  • @KailashJNirmal
    @KailashJNirmal Год назад

    Very useful and helpful for anyone who is Java , Spring , Spring Boot ( Java Backend) developer. Thanks to you sir and entire team for the efforts. I am just wondering How are you creating / recording video? It's so convenient for the viewers. Lovely. !Thanks again!!

  • @pranavmahajan4190
    @pranavmahajan4190 6 месяцев назад

    Her knowledge is really good.

  • @vipingour5189
    @vipingour5189 2 года назад +2

    Awesome 😊, this video is very helpful for us. Thanks ❤

    • @SeleniumExpress
      @SeleniumExpress  2 года назад +1

      Glad to hear, Vipin 😊

    • @vedavathi1117
      @vedavathi1117 2 года назад

      @@SeleniumExpress very nice this vedio is very helpful thankyou.. I would like to contact you regarding java preparation could you please provide your contact Abhi.

  • @krishnakshirsagar4570
    @krishnakshirsagar4570 2 года назад +1

    when i saw you were also giving coding example in videos while she was explaining i instantly subscribed

  • @akhil7556
    @akhil7556 7 месяцев назад

    Really helpful

  • @punzzycool
    @punzzycool Год назад

    All these years I refrained from watching your videos as i thought this channel is mainly for Software Automation Testers as its name is Selenium Express but now I got to know that its not true. BTW good set of questions and explanations. Keep it up

  • @parmodprajapati
    @parmodprajapati 2 года назад +1

    Hi,
    Excellent, Your all videos are helpful, Now related to Java mock interview videos are giving us more weapons.
    I hope you will provide Java mock interview videos every Monday.

    • @SeleniumExpress
      @SeleniumExpress  2 года назад +2

      Thanks, Parmod !
      Sure, I will try to add few more episodes to this series. The goal is to cover different questions which are frequently asked in Java interviews.

  • @black_spy3567
    @black_spy3567 2 года назад +1

    We use Swagger UI to provide certain functionality in microservices. Which bean we use? Swagger Context provider or Swagger Application Provide or Swagger Resources Provider

  • @rakeshkumar8908
    @rakeshkumar8908 Год назад

    Thanks

  • @croydon21H
    @croydon21H 2 месяца назад

    @42:00 I would say @bean wont be added to context without @Configuration type of class...but @Component is bean that gets added to context automatically. Yes Bean has more control.

  • @tankala30
    @tankala30 2 года назад +2

    Hey lavanya...we worked in Cognizant in same project.

  • @SriHariChukka1210
    @SriHariChukka1210 Год назад

    Thanks everyone for your efforts

  • @vigneshrv
    @vigneshrv Год назад

    Looks like .. I was in my college ...
    I would like to see algorithms too from you guys :)

  • @start1learn-n171
    @start1learn-n171 2 года назад

    TQ

  • @dnyaneshwarbandgar5338
    @dnyaneshwarbandgar5338 2 года назад

    Thank you sir 👍👍

    • @muralitreddy
      @muralitreddy 2 года назад

      Thanks for making mock interview. It's very useful for everyone.nice work.

  • @ColorsWithThread
    @ColorsWithThread Год назад +1

    Still wonder who made you Software Programmer? You are a born teacher with astonishing talent of teaching complex concepts in easy way..i wish you were teaching in Oxford University!

  • @avinashmolaj
    @avinashmolaj 2 года назад

    Thanks for the great content! This is very useful

  • @lakshmiprasanna5954
    @lakshmiprasanna5954 2 года назад +1

    Very useful abhi

  • @juracosoftware4009
    @juracosoftware4009 2 года назад

    We use marker interface as normal but modifications in jvm is required

  • @rajendrajain9081
    @rajendrajain9081 11 месяцев назад

    I really like the way you are teaching and its really helpful.Have you also created any video on thread concept.I am unable to find it.

  • @BeginnerToProDeveloper
    @BeginnerToProDeveloper 5 месяцев назад

    We can achieve using a normal interface but since we will define methods in it. we need to override those methods in the class which implements that interface.

  • @saravananba748
    @saravananba748 2 года назад

    Hi Abilash , please make a playlist in collection framework.

  • @Daxbedivlogs
    @Daxbedivlogs 2 года назад

    very informative can we have some videos on websocket with stomps with any messaging queues???

  • @ankitsrivastava2994
    @ankitsrivastava2994 6 месяцев назад

    Hi Abhilash it is very much helpful , Please Please create Microservice Interview Mock

  • @kishoreilaka2804
    @kishoreilaka2804 2 года назад

    Can spring container allows to autowire an interface using @Autowired annotation? Pls clarify

  • @akshaysingh2294
    @akshaysingh2294 Год назад

    In Java 8,Interface can have default & static methods as well,so can we say that its breaking the statement which says an interface contains only abstract methods?

  • @SummerIsFun2024
    @SummerIsFun2024 8 месяцев назад

    She memorized the answers well

  • @mustafaercan686
    @mustafaercan686 2 года назад +2

    Hello Abilash, can you make videos on topic Web Services(REST/SOAP)

  • @kraw-vo4oy
    @kraw-vo4oy 4 месяца назад

    like any blockbuster movie the climax part is too good... :)

  • @aamirmalik8858
    @aamirmalik8858 2 года назад

    @Abhilash I have used AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); in main method but i also have controller how can i call the controller from here .
    If i am using Springapplication.run(App.class, args) then error is thrown

  • @nandnitech160
    @nandnitech160 2 года назад

    hello sir, plss make a one video on how to manage interview phobia?

  • @RiteshSingh-xb9oy
    @RiteshSingh-xb9oy Год назад

    hello sir pls upload spring oauth and jwt full videos..i have completed your all spring security videos it was nice videos

  • @yogeshjoshi8021
    @yogeshjoshi8021 6 месяцев назад

    Hi Abhilash, Interview recording is really great. Thanks a lot!! .I have one doubt in @Transaction(NOT _SUPPORTED ) and @Transactional(NEVER). I guess the NEVER will suspend the transaction if already exists and throw error. (You have explained this in your Transaction Management session). But in this interview session it was mentioned that NOT SUPPORTED will throw error. Please correct if I am wrong..

  • @nextiswhat6262
    @nextiswhat6262 Год назад

    what is the package of her in usa any approximate pkg and how can we get selected for USA location?

  • @kamalabdullayev4445
    @kamalabdullayev4445 Год назад +1

    I think you made a mistake with the @Transactional question. You said calling transactional method from a non-transactional method will create a new transaction, but it is not true. By default dynamic proxy doesn't support this. Both methods should be transactional. It is a self call.

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm Год назад +1

    Please provide one for fresher.

  • @surbhibansal7164
    @surbhibansal7164 2 года назад +5

    Hey ,as usual great content!
    However , I have a doubt about @bean vs @component….you guys were discussing that we cant put conditions with @component….is it so??? I have seen many examples where condition is there at class level with@component….
    Kindly help in clearing this doubt pls :(

    • @mukeshbehera1026
      @mukeshbehera1026 2 года назад

      @Component is a class level annotation where as @Bean is a method level annotation. And method name server as the Bean name.

    • @MoanDeep
      @MoanDeep 2 года назад

      @surbhi bansal, I join your question. I am using @ConditionalOn* properties over along with @Component

  • @appsgames3513
    @appsgames3513 2 года назад +1

    Lavanya from where you have learn all these things

  • @chamanjain9843
    @chamanjain9843 3 месяца назад

    At 40:08, Question 7 is not right, as we can add @Conditional over @Service, @Component, or even @Configuration annotated classes.

  • @Manuel-oe4gv
    @Manuel-oe4gv 2 года назад +5

    Great content for preparation but sounds a bit unrealistic to know everything by heart during a real interview, there are reference docs for a reason, we forget details.

    • @SiraviYoshni2020
      @SiraviYoshni2020 2 года назад +1

      Yeah .it is great video but even I felt that this is somewhat unrealistic that she knows even the insides such as spring.factories inside META-INF etc

    • @_danox
      @_danox Год назад

      I was thinking the same, maybe in their education culture they need to memorize a lot the details but for the day to day work is pointless, as you said, we have the documentation for a reason.

  • @harshwardhanshetty4683
    @harshwardhanshetty4683 Год назад

    high quality video i loved it

  • @chayanjana20
    @chayanjana20 Год назад

    spelling mistake in defination, instead😄 it would be definition, but really in depth session.

  • @anuragduttachowdhury9440
    @anuragduttachowdhury9440 Год назад +1

    Have been working with Java Spring Boot in the industry for a year now. After listening to the interview I feel I am a noob. But my question is are these questions actually asked for Job Roles with Spring boot and Microservices ?

  • @sunnywaypoori9035
    @sunnywaypoori9035 2 года назад

    Hi sir,
    Please upload the videos some what fast

  • @jayasimharaju9220
    @jayasimharaju9220 Год назад

    How you are technically this good Abhilash, I mean is it because of project work you have done in your earlier days or have u learnt personally on your own. Bcz most of the times we won't get end to end projects.

  • @mansinghyadav548
    @mansinghyadav548 2 года назад +8

    Sir we are waiting for spring boot videos