Spring Boot Interview Mastery 🔥 | Question & Answer Guide for Developers | Part-4 | @Javatechie

Sdílet
Vložit
  • čas přidán 30. 11. 2023
  • #JavaTechie #SpringBoot #InterviewQ&A
    In this comprehensive guide, we'll explore the most common Spring Boot interview questions and provide detailed answers and explanations. You'll gain insights into crucial Spring Boot concepts, best practices, and tips to help you excel in your interviews.
    Spring Boot Interview Mastery PART 1
    👉 - • Spring Boot Interview ...
    Spring Boot Interview Mastery PART 2
    👉 - • Spring Boot Interview ...
    Spring Boot Interview Mastery PART 3
    👉 - • Spring Boot Interview ...
    Annotations cheat sheet :
    👉 • Interview QA | 40+ Spr...
    ⏰ Timestamps
    0:42 - Have you worked on Restful web services? If yes What all HTTP methods have you used in your project?
    1:41 - How can you specify the HTTP method type for your REST endpoint?
    6:09 - Can you design a rest endpoint, Assume that you have a product database, and your task is to create an API to filter a list of products by productType.
    11:12 - Design endpoints in a way that takes "productType" as input. If the user provides this input, the endpoint should filter products based on the specified condition. If "productType" is not provided, the endpoint should return all the products.
    16:32 - What is the difference between @PathVariable and @RequestParam?
    18:49 - Why did you use @RestController and why not @Controller?
    26:22 - How can we deserialize a JSON request payload into an object within a Spring MVC controller?
    30:39 - Can we perform update operation in POST http method if yes then why do we need PUT mapping or put http method?
    35:31 - Can we pass Request Body in GET HTTP method?
    37:24 - How can we perform content negotiation (XML/JSON) in Rest endpoint?
    41:15 - What all status code you have observed in your application?
    44:41 - How can you customize the status code for your endpoint?
    46:57 - How can you enable cross origin?
    50:47 - How can you upload a file in spring?
    53:52 - How do you maintain versioning for your REST API?
    1:00:29 - How will you document your REST API?
    1:04:52 - How can you hide certain REST endpoints to prevent them from being exposed externally?
    1:08:07 - How will you consume restful API?
    Spring boot microservice Premium course lunched with 70% off 🚀 🚀
    Hurry-up & Register today itself!
    COURSE LINK : javatechie5246.ongraphy.com/
    PROMO CODE : JAVATECHIE50
    OR use Javatechie APP
    Download the JavaTechie app on your iOS or Android device from the App Store or Google Play Store.
    Find the links below :
    Android 🌐 : play.google.com/store/apps/de...
    IOS 🌐 : apps.apple.com/in/app/javatec...
    GitHub:
    github.com/Java-Techie-jt/spr...
    Blogs:
    / javatechie4u
    Facebook:
    / javatechie
    Join this channel to get access to perks:
    czcams.com/users/javatechiejoin
    guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
    Disclaimer/Policy:
    --------------------------------
    Note : All uploaded content in this channel is mine and its not copied from any community ,
    you are free to use source code from above mentioned GitHub account
  • Věda a technologie

Komentáře • 87

  • @subhadeeproy4951
    @subhadeeproy4951 Před 3 měsíci +5

    Excellent video to make concept crystal clear and very helpful for interview, as current market doing job is comparatively easy than cracking absurd interview with 100% as pass mark.

  • @nitinsharma966
    @nitinsharma966 Před 6 měsíci +1

    Ultimate series looking forward

  • @AGAGARCIA
    @AGAGARCIA Před 6 měsíci +1

    Excellent session. Thanks for share your knowledge in a funny and productive way. I loved your masterclass

  • @bharat_news433
    @bharat_news433 Před 6 měsíci +1

    Wonderfully session

  • @faixan13
    @faixan13 Před 5 měsíci +1

    Thanks for the dedicated video on Restful topics and scenarios. The scenarios are spot on .

  • @user-gj3nq9os7f
    @user-gj3nq9os7f Před 5 měsíci +1

    Excellent session sir . Thank u so much

  • @user-ki9ei4og8m
    @user-ki9ei4og8m Před 6 měsíci +2

    One of the best java related CZcams channel ❤

  • @pallaviv4494
    @pallaviv4494 Před 2 měsíci +1

    it is really helpful.. thank you very much

  • @sandeep_begudem
    @sandeep_begudem Před 5 měsíci +1

    Thank you so much, this is very helpful to fill some of the knowledge gaps for me! Please continue the amazing work!🙂

  • @nitheeshreddy6863
    @nitheeshreddy6863 Před 6 měsíci +1

    thank you sir please continue this series

  • @falgunimodi2826
    @falgunimodi2826 Před 6 měsíci +1

    excellent explanation

  • @himanshusharma4832
    @himanshusharma4832 Před 6 měsíci +1

    Awesome Content Basant🙏🤝. Thank you for this.

  • @manishmukul5874
    @manishmukul5874 Před 5 měsíci +1

    indeed insightful session as always ..!!!

  • @im_asfar
    @im_asfar Před 6 měsíci +1

    Thanks alot for this sir

  • @Siddharthnawani
    @Siddharthnawani Před 2 měsíci +1

    Amazing content. Keep it up.

  • @Maulik-pn6wy
    @Maulik-pn6wy Před měsícem +1

    This was one of the great videos in the whole series, appreciate it man

  • @ktmurali3274
    @ktmurali3274 Před měsícem +1

    Thank you so muchhhhhhhhhh and you are very great Basant I have seen all videos I am very greatful to you all videos available for free

  • @anandkushwaha-hf5nb
    @anandkushwaha-hf5nb Před 2 měsíci

    Nicely explained, Thanks Basant 👍

  • @PappuKumar-ho3ek
    @PappuKumar-ho3ek Před 6 měsíci +1

    Thanks again

  • @Abhi-uj7gf
    @Abhi-uj7gf Před 5 měsíci

    Waiting.. for next part 😊

  • @Avinashkumar-fo2bu
    @Avinashkumar-fo2bu Před 6 měsíci +1

    Thank you basant bhai ❤

  • @user-vj4li7cc8v
    @user-vj4li7cc8v Před 6 měsíci +1

    Hi Basant way of explaining everything it is great I learnt a lot from ur videos thanks Java Guru please make some video on micro service interviews questions 🙏

  • @roaming.nomad0
    @roaming.nomad0 Před 6 měsíci

    Enjoyed entire 1 hrs 17 minutes and 38 seconds ❤

  • @gopisambasivarao5282
    @gopisambasivarao5282 Před 6 měsíci +2

    Basant, Appreciate your efforts. You are my Java Guru. Awesome explanation with examples. God bless you. I learned new things on weekly basis.🙂🙏👍

    • @ak-yo4wo
      @ak-yo4wo Před 6 měsíci +1

      I am much older than him but still he is my guru

    • @Javatechie
      @Javatechie  Před 6 měsíci +1

      Thank you @ak-yo4wo and @gopi your words mean a lot to me. Honestly this kind of word always boosts my confidence to deep dive more and come up with better content

  • @devforall2006
    @devforall2006 Před 6 měsíci +2

    Sir, you need to explain what are interceptors and fliters in detail and also about controller advices
    How session is maintained and how multiples microservices share the token and authentication

  • @javafasttrack3439
    @javafasttrack3439 Před 6 měsíci +1

    awesome videos your are making. hope in your next videos shall I expect micro services interview questions. ( i am feeling these are not interview questions these are cheatsheet)

  • @CodingMachine007
    @CodingMachine007 Před 5 měsíci +2

    0:42 - Have you worked on Restful webservices? If yes What all HTTP methods have you used in your project?
    1:41 - How can you specify the HTTP method type for your REST endpoint?
    6:09 - Can you design a rest endpoint, Assume that you have a product database, and your task is to create an API to filter a list of products by productType.
    11:12 - Design endpoints in a way that takes "productType" as input. If the user provides this input, the endpoint should filter products based on the specified condition. If "productType" is not provided, the endpoint should return all the products.
    16:32 - What is the difference between @PathVariable and @RequestParam?
    18:49 - Why did you use @RestController and why not @Controller?
    26:22 - How can we deserialize a JSON request payload into an object within a Spring MVC controller?
    30:39 - Can we perform update operation in POST http method if yes then why do we need PUT mapping or put http method?
    35:31 - Can we pass Request Body in GET HTTP method?
    37:24 - How can we perform content negotiation (XML/JSON) in Rest endpoint?
    41:15 - What all status code you have obsereved in your application?
    44:41 - How can you customize the status code for your endpoint?
    46:57 - How can you enable cross origin?
    50:47 - How can you upload a file in spring?
    53:52 - How do you maintain versioning for your REST API?
    1:00:29 - How will you document your REST API?
    1:04:52 - How can you hide certain REST endpoints to prevent them from being exposed externally?
    1:08:07 - How will you consume restful API?

  • @Saikat3366
    @Saikat3366 Před 6 měsíci +1

    Hi Basant. Great video as always! Just wanted to add.. 204 (No Content) is also a popular HTTP status code. I have seen PATCH/DELETE APIs return that error code.

  • @krishnamohan5771
    @krishnamohan5771 Před 6 měsíci +1

    please make a sonarqube and code quality tools video...

  • @Vithal_Nivargi
    @Vithal_Nivargi Před 6 měsíci

    Thank you so much such wonderful video series going on.. keep it up 👏.
    Is it possible to get those questions in document/ppt/pdf.
    Because in short time that would really helps us in before interview.
    Thanks❤

  • @akku6811
    @akku6811 Před 6 měsíci

    Please make such videos for microservices as well asap 🙏 😫

  • @user-pg2yp4oc6b
    @user-pg2yp4oc6b Před 5 měsíci +1

    Could you create a video about the spring boot series? I think your explanation is good to follow. Thanks!

    • @Javatechie
      @Javatechie  Před 5 měsíci

      It's already there please checkout my spring boot playlist

  • @malleswarrao3887
    @malleswarrao3887 Před měsícem

    Thank you for given such a technical questions and answers. Could you please give me the list of questions in the pdf or doc file so that we can take a reference those all questions

  • @Briefseverus
    @Briefseverus Před 6 měsíci +1

    respect

  • @Atul_Shegokar
    @Atul_Shegokar Před 5 měsíci +1

    Hello Basant sir, eagerly waiting for part 5. I was expecting this weekend but take your time sir.

    • @Javatechie
      @Javatechie  Před 5 měsíci +1

      Hello Atul thank you for following. I will do it soon

    • @parulfogla6466
      @parulfogla6466 Před 5 měsíci +1

      @@Javatechie will part 5 come?

    • @Javatechie
      @Javatechie  Před 5 měsíci

      Hello Parul thank for checking, FYI yes part 5 will come I am planning it for this weekend. Or max it could be extended to Monday EOD . Sorry for the delay as I occupied with other activities kindly request all of you to cooperate .

    • @parulfogla6466
      @parulfogla6466 Před 5 měsíci

      @@Javatechie still waiting for part 5

    • @Javatechie
      @Javatechie  Před 5 měsíci

      @@parulfogla6466 this weekend for sure 😊

  • @bhargavvenkat961
    @bhargavvenkat961 Před 6 měsíci

    Hello Basant, could you please make videos on micro services interview questions

  • @krishnamohan5771
    @krishnamohan5771 Před 6 měsíci

    can you please do some interview series for microservices also like this

  • @karthikeyanrm3446
    @karthikeyanrm3446 Před 6 měsíci +2

    Hi Basant - I don't see the GitHub repo in description. Also, kindly continue this series to Microservices snd put these interview questions in a playlist.

    • @Javatechie
      @Javatechie  Před 6 měsíci

      its there buddy please check github.com/Java-Techie-jt/spring-boot-interview-qa

  • @afrozkhan.
    @afrozkhan. Před 2 měsíci

    I am not able to get the swagger in have added the dependency but still getting error and other changes required....?

  • @subhadeeproy4951
    @subhadeeproy4951 Před 3 měsíci

    Can you please add example of same endpoint with different method. example /trade GET will return all trade however /trade POST will create new trade as per @RequestBody. and one example scenario when PATCH is doing partial update.

  • @shilpasingla1739
    @shilpasingla1739 Před měsícem +1

    Hi Basant..can you pls tell when we hit rest api on browser and when we make use of postman.I know for get request we can use browser.

    • @Javatechie
      @Javatechie  Před měsícem +1

      Yes only to get a request that without security you can access from the browser

  • @the_rocker7786
    @the_rocker7786 Před 3 měsíci +1

    @Pathvariable also we can create as optional

    • @Javatechie
      @Javatechie  Před 3 měsíci

      Not sure I will check and update

  • @shivangiagarwal5429
    @shivangiagarwal5429 Před 4 měsíci

    Not sure if something got updated but I was not able to implement content negotiation even after including dependency and making changes to properties file. Moreover, was getting warnings in the properties file with mvc properties. Is there any changes with new versions?
    Any tips would be helpful.

  • @Phoenix-od2bp
    @Phoenix-od2bp Před 6 měsíci +1

    Patch vs Put when to use, idempotency

  • @udayagiriveeru1366
    @udayagiriveeru1366 Před 6 měsíci +1

    Excellent session Basant❤. Thank you so much. Can you please help to share the questions guide

  • @angadbansode8363
    @angadbansode8363 Před 6 měsíci +1

    Hi Basant- @PathVariable is also required = false we can set. Default values for required is true for both @PathVariable & @RequestParam. Pls, correct me if I am wrong. 18:10

    • @Javatechie
      @Javatechie  Před 6 měsíci

      No we can't set it for the path variable

  • @vndprasadgrandhi7024
    @vndprasadgrandhi7024 Před 6 měsíci +1

    Hi Bro,I am fan of your videos and learnt a lot..Thats why sharing this information.Currrently,I need to work on Spring Reactive with Cassandra and based on this I have searched so many tutorials and references and nor found exactly and no proper information. My side request is like this me so many persons might be struggled.So,could you please start a Spring or Springboot Reactive series with Cassandra..It's so much very helpful and currently in industry willmplan to do this..That's why I am sharing this information.

    • @Javatechie
      @Javatechie  Před 6 měsíci

      Hello you can check out my reactive programming playlist Only the database is different from what I have used there

    • @vndprasadgrandhi7024
      @vndprasadgrandhi7024 Před 6 měsíci +1

      @@Javatechie yaa it's true..But in real time that's not enough bro..That's why requested you as per your teaching

    • @Javatechie
      @Javatechie  Před 6 měsíci

      @@vndprasadgrandhi7024 okay thanks for your interest will plan microservice series with reactive programming

    • @vndprasadgrandhi7024
      @vndprasadgrandhi7024 Před 6 měsíci +1

      @@Javatechie Thank you very much for your support bro..

  • @mithileshchandra2072
    @mithileshchandra2072 Před 2 měsíci +1

    I am confused about content negotiation, where is the cnfgs for filter which u r appending in uri?

    • @Javatechie
      @Javatechie  Před 2 měsíci

      Please check the properties file

  • @shilpasingla1739
    @shilpasingla1739 Před 5 měsíci +1

    Hi Basant...can you please tell me difference between @autowired and @inject

    • @Javatechie
      @Javatechie  Před 5 měsíci

      Please check this video czcams.com/video/htyq-mER0AE/video.html

  • @anandgaming778
    @anandgaming778 Před 4 měsíci +1

    Hi Basant, for pathvariable also we can make it as a Optional filed, is that a main difference or else we have any other differences EX: @PathVariable(required = false)

    • @Javatechie
      @Javatechie  Před 4 měsíci

      If you won't provide a path variable then it will give 404 resources not found. Have you tried optional and verified it's behaviour

    • @anandgaming778
      @anandgaming778 Před 4 měsíci +1

      Yeah Basant Checked , now i'll got it, Thanks for the wonderful session @@Javatechie

  • @karthiksundaram544
    @karthiksundaram544 Před 6 měsíci +1

  • @rishiraj2548
    @rishiraj2548 Před 6 měsíci +1

    🙏💯👍

  • @afrozkhan.
    @afrozkhan. Před 5 měsíci +1

    If possible can u provide all 4 parts Questions in downloadable PDF format..

    • @Javatechie
      @Javatechie  Před 5 měsíci +1

      Many more questions will cover in coming series once I will done with it then will publish blogs in my medium is that fine?

  • @user-gh1eo2cg1m
    @user-gh1eo2cg1m Před 6 měsíci +1

    Could you please share this code

    • @Javatechie
      @Javatechie  Před 6 měsíci +1

      Please check the video description

  • @Deepakumari-io4nt
    @Deepakumari-io4nt Před 4 měsíci

    Meaning of ResponseEntity plz
    . Y we r giving here

  • @dattun976
    @dattun976 Před 6 měsíci +1

    Bro, can you please share the source code link here

    • @Javatechie
      @Javatechie  Před 6 měsíci +1

      Its there in video description please check

  • @user-kt2yh4rp9u
    @user-kt2yh4rp9u Před 6 měsíci

    Hi Basant , please help to differentiate among @QueryParam , @PathParam and @RequestParam

  • @sufails2741
    @sufails2741 Před 6 měsíci

    Hello Basant, how can I contact you, email or anything