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

Поділитися
Вставка
  • Опубліковано 5 сер 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. .

КОМЕНТАРІ • 156

  • @KalathilAjayMenon
    @KalathilAjayMenon 2 роки тому +94

    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 11 місяців тому +1

      @@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 роки тому +7

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

  • @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.

  • @ytsub-uk8mk
    @ytsub-uk8mk Рік тому +2

    Power-packed of knowledge. Salute Abhilash and Lavanya.

  • @sumithulsurkar2436
    @sumithulsurkar2436 Рік тому +2

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

  • @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.

  • @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❤

  • @ripalbhagat2785
    @ripalbhagat2785 2 роки тому +2

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

  • @streetchronicles5693
    @streetchronicles5693 Рік тому

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

  • @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.

  • @walterwhite7167
    @walterwhite7167 Рік тому

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

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 2 роки тому

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

  • @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.

  • @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).

  • @KPSinghx
    @KPSinghx 2 роки тому +1

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

  • @TrupsWorld
    @TrupsWorld 2 роки тому

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

  • @ashwinkumar09uvce
    @ashwinkumar09uvce 2 роки тому

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

  • @JIeshaz
    @JIeshaz Рік тому +1

    A brilliant interview to refresh spring knowledge

  • @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...

  • @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.

  • @kirankumarmothukuri7660
    @kirankumarmothukuri7660 2 роки тому

    Quality of interview , Demonstrating wile explaining is awesome.

  • @crisel15tqm
    @crisel15tqm Місяць тому

    It was an awesome video. I learned several definitions and it motivates me to continue learning! Thanks :D

  • @bynuful
    @bynuful Рік тому

    Perfect !! Loved every minute of it 👏👏

  • @kshitijsingh1990
    @kshitijsingh1990 2 роки тому

    Instantly subscribed. Quality content!

  • @srinivassri9335
    @srinivassri9335 2 роки тому

    Thanks for all your efforts. This really helps us.

  • @Believer...
    @Believer... Рік тому

    Huge Respect for this massive valuable content.

  • @ajaycsenit
    @ajaycsenit 2 роки тому

    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.

  • @ravi46826
    @ravi46826 Рік тому

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

  • @abhrajitnandy
    @abhrajitnandy 2 роки тому

    You are THE GURU of development ❤️

  • @kesavenvulliamay4637
    @kesavenvulliamay4637 2 роки тому +2

    Very Informative !

  • @harishtyagi415
    @harishtyagi415 2 роки тому

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

  • @nkwejusticemapoulo2208
    @nkwejusticemapoulo2208 6 місяців тому

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

  • @robertshakhrai9481
    @robertshakhrai9481 Рік тому +1

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

  • @aditigupta5324
    @aditigupta5324 2 роки тому +1

    One of the best channels

  • @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!!

  • @alessandrobruni568
    @alessandrobruni568 23 дні тому

    complimenti Lavinia!!!!

  • @mousumisaha4525
    @mousumisaha4525 2 роки тому

    Great session. Thank you

  • @rajmohanshekhawat1873
    @rajmohanshekhawat1873 2 роки тому

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

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 роки тому +1

    Amazing sir ❤️ please make one more video!

  • @jayalakshmi1369
    @jayalakshmi1369 Рік тому

    Very clear explanation Lavanya

  • @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

  • @sadvikgowda6474
    @sadvikgowda6474 2 роки тому +1

    Very informative....

  • @smratikushwah6692
    @smratikushwah6692 8 місяців тому

    Great video, thanks a lot 😊

  • @AnitaSingh-fg2ef
    @AnitaSingh-fg2ef 2 роки тому

    Great Explanation. Thank you so much Abhilash

  • @juiliraut9413
    @juiliraut9413 2 роки тому

    Marvellous.

  • @vaghii6731
    @vaghii6731 2 роки тому +2

    U are great abhilash thanks for these kind of interview sessions

  • @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)

  • @josephnairpudupermanil8679
    @josephnairpudupermanil8679 2 роки тому

    Awesome explanation bro..

  • @sure.krishna
    @sure.krishna 2 роки тому +1

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

  • @punzzycool
    @punzzycool 2 роки тому

    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

  • @shashikantkumar9019
    @shashikantkumar9019 2 роки тому

    Really Nice Session

  • @sripolisettys
    @sripolisettys 2 роки тому

    Awesome session

  • @ColorsWithThread
    @ColorsWithThread 2 роки тому +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!

  • @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.

  • @vishalkumarsonawane6772
    @vishalkumarsonawane6772 2 роки тому

    Great

  • @aayush5474
    @aayush5474 2 роки тому

    Very helpful

  • @pranavmahajan4190
    @pranavmahajan4190 8 місяців тому

    Her knowledge is really good.

  • @BineetMohanty
    @BineetMohanty 2 роки тому

    Appreciate Abhishek !

  • @ruhikumari8083
    @ruhikumari8083 2 роки тому

    Please do more series like this 👍

  • @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

  • @tankala30
    @tankala30 2 роки тому +2

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

  • @krishnakshirsagar4570
    @krishnakshirsagar4570 2 роки тому +1

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

  • @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.

  • @kishoreilaka2804
    @kishoreilaka2804 2 роки тому

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

  • @akhil7556
    @akhil7556 8 місяців тому

    Really helpful

  • @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?

  • @rajendrajain9081
    @rajendrajain9081 Рік тому

    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.

  • @dheebanm9158
    @dheebanm9158 2 роки тому

    Extraordinary Wrok sir

  • @vigneshrv
    @vigneshrv Рік тому

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

  • @rakeshkumar8908
    @rakeshkumar8908 2 роки тому

    Thanks

  • @BeginnerToProDeveloper
    @BeginnerToProDeveloper 6 місяців тому

    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.

  • @juracosoftware4009
    @juracosoftware4009 2 роки тому

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

  • @SriHariChukka1210
    @SriHariChukka1210 2 роки тому

    Thanks everyone for your efforts

  • @avinashmolaj
    @avinashmolaj 2 роки тому

    Thanks for the great content! This is very useful

  • @ankitsrivastava2994
    @ankitsrivastava2994 8 місяців тому

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

  • @mustafaercan686
    @mustafaercan686 2 роки тому +2

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

  • @start1learn-n171
    @start1learn-n171 2 роки тому

    TQ

  • @nextiswhat6262
    @nextiswhat6262 Рік тому

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

  • @croydon21H
    @croydon21H 4 місяці тому

    @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.

  • @Daxbedivlogs
    @Daxbedivlogs 2 роки тому

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

  • @dnyaneshwarbandgar5338
    @dnyaneshwarbandgar5338 2 роки тому

    Thank you sir 👍👍

    • @muralitreddy
      @muralitreddy 2 роки тому

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

  • @yogeshjoshi8021
    @yogeshjoshi8021 7 місяців тому

    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..

  • @SummerIsFun2024
    @SummerIsFun2024 9 місяців тому

    She memorized the answers well

  • @kamalabdullayev4445
    @kamalabdullayev4445 2 роки тому +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.

  • @appsgames3513
    @appsgames3513 2 роки тому +1

    Lavanya from where you have learn all these things

  • @kraw-vo4oy
    @kraw-vo4oy 5 місяців тому

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

  • @lakshmiprasanna5954
    @lakshmiprasanna5954 2 роки тому +1

    Very useful abhi

  • @saravananba748
    @saravananba748 2 роки тому

    Hi Abilash , please make a playlist in collection framework.

  • @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.

  • @harshwardhanshetty4683
    @harshwardhanshetty4683 Рік тому

    high quality video i loved it

  • @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

  • @Ajay51702
    @Ajay51702 Рік тому

    hello, i am complete BCA in 2014 now i want to job for java background but i am late does it's possible to gets jobs..please reply me....

  • @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 2 роки тому

      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.

  • @nandnitech160
    @nandnitech160 2 роки тому

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

  • @chamanjain9843
    @chamanjain9843 4 місяці тому

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

  • @sufyankhot7520
    @sufyankhot7520 2 роки тому +2

    I would have failed this interview terribly lol 😂😭

  • @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

  • @chayanjana20
    @chayanjana20 2 роки тому

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