Java Interview Questions | Java Program Solving | Core & Advance Java | Part 1

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

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

  • @TheKiranAcademy
    @TheKiranAcademy  4 месяца назад +1

    Data Structures and Algorithms (DSA) Full Series- ruclips.net/p/PLQU_Gzt0f8XSsX1Sxzpj0IiNpEXxd9FcF&si=iCYR28kiDKtBMaao
    👉Fill Out The Form To Schedule Your Offline Mock: forms.gle/TMdk8sFZbiThWabK7
    🔰𝐉𝐨𝐢𝐧 𝐨𝐮𝐫 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬- bit.ly/jbkgshub7

  • @chandankumarsingh4753
    @chandankumarsingh4753 Год назад +27

    Awesome! As a fresher, that too from a non-IT background, Pooja has answered this mock interview with tremendous effect. I was really inspired by her. Thank you Kiran sir for motivating your students in such a manner.

  • @GaneshNarangale
    @GaneshNarangale Год назад +23

    Kiran sir's motivating nature which gives turning point to no. of student's career , the maximum number of students are from small cities, I'm one of them , Thanks Kiran sir and JBK💌

  • @AadiandJava1705
    @AadiandJava1705 Год назад +12

    Very nice interview sir this will definitely help me and many more students. You are my role model and I follow you because there is so much to learn from you. Keep guiding Sir Thank you so much Sir 💝

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

    23:05 the girl is correct 💯 ,it will print 2222 because both class is different, i don't know why sir say no .🙂

  • @akashtanajigurav8226
    @akashtanajigurav8226 7 месяцев назад +4

    21:30
    No, if class A has a method m1 that is declared as final, it means that the method cannot be overridden by any subclass, including class B. Therefore, class B cannot access or modify the implementation of the m1 method from class A. When a method is declared as final, it effectively prevents any subclass from altering its behavior, ensuring that the method's functionality remains consistent across all subclasses. However, class B can still inherit other non-final methods and variables from class A, but it cannot override the final method m1.

    • @candy_crussh
      @candy_crussh 6 дней назад

      method m1 of class A is not final so Class B can override n

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

    Great knowledge but seems like Chatur from 3 idiots 26:51
    But Kiran sir made the interview look so easy by giving the answers and boosting confidence of the candidate

  • @amirkhansk0911
    @amirkhansk0911 Год назад +7

    this student is much aware of all topics

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

    Great sir ❤ .But at the end the code was more efficient when i start from 0 and i+=5 because the time complexity will less than i++ code because condition will be checked for every value of i ,I think jump 5 at once is good and efficient or what? If you can provide any suggestions then it would be helpful for me.

  • @abhiii777
    @abhiii777 7 месяцев назад +3

    36:11
    I think according to question she need to put scanner then
    for(int i=1;i

  • @kupendra9082
    @kupendra9082 Год назад +7

    36:09
    It is my answer for ur question is this correct
    public class A {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    System.out.println("Enter num: ");
    int n = sc.nextInt();
    for (int i = 0; i < n; i++) {
    System.out.println(5 * i);
    }
    sc.close();
    }
    }

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

    Question 😮 you didn’t ask her
    Why variables called attributes and functions called methods in class?
    Why?

  • @DeepakGurumurthyIyer
    @DeepakGurumurthyIyer 8 месяцев назад +2

    Kiran you are the best interviewer, you ask questions and if they are not sure about the answer you educate them. Rare and nice quality.

  • @sihi__
    @sihi__ Год назад +6

    Anybody please mention the topics to learn in java as a fresher including API's and frameworks..

  • @TheKiranAcademy
    @TheKiranAcademy  Год назад +5

    Java FullStack Developer Roadmap: ruclips.net/video/dvBeUvwUZHQ/видео.html
    🔰𝐉𝐨𝐢𝐧 𝐦𝐲 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬 𝐚𝐧𝐝 𝐮𝐧𝐥𝐨𝐜𝐤 𝐭𝐡𝐞 𝐦𝐚𝐠𝐢𝐜 𝐨𝐟 𝐜𝐨𝐝𝐢𝐧𝐠! 🚀
    bit.ly/jbkgshub7

  • @No_Namee111
    @No_Namee111 9 месяцев назад

    Sir, I have recently joined a product based company based on Java. They gave me training of c# for 8 days. And assigned me a single handy project. I am the only person on this project, my senior team is not as supportive as expected. This is disappointing me. Please guide 😔

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

    Ok let answer my question that what is difference bw abstraction and encapsulation in detail with real life example
    Edit: Don't answer me from chatgpt due to I search it on this question alot but I can't find the satisfied answer

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

    No offence, but I cannot understand half the words you're saying. Very frustrating.

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

    Iam also learn java in pankaj sir academy in bangalore..
    What if I answer in Interview when I. Don't know the ans?

  • @AbhishekKumar-ob5kj
    @AbhishekKumar-ob5kj Год назад +2

    why multiple inheritance allowed in c++ using class but not in java using class

    • @abhayrana4955
      @abhayrana4955 Год назад +2

      in c++ you can use virtual functions to allow the overriding and not define the implementation of the method in the parent class , while in case of java there is no concept of virtual methods , though you can have abstract methods in abstract classes , but java do not allow the multiple inheritance by taking any chances of error(in case concrete methods are there having implementation), as by using interfaces all the methods are guaranteed to be pure virtual so if their implementation is written in the child class only (by overriding) then there is no problem of ambiguity that's why it can be done using interfaces.

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

    Superrr🎉🎉🎉 I got some 4 topics information from ur video

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

    I saw in print statement doesn't have semicolon how it will compile? Sop(1111)

  • @sravanisingh9326
    @sravanisingh9326 Год назад +2

    Please keep these movk these are useful

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

    Sir I am 2018 pass out civil branch,can I change my career towards it

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

    i am sorry fo that sir
    you said sir we can initialize the final variable with the help of class constructor but it is not possible
    we can not initialize the final variable by using constructor if we will try this tyhan we will be getting compile time error. you can check it in you video timing at 17:36
    if you want than i can tell how to initialize the final variable in another way.
    but no worry sir you are great teacher i respect you,
    but sometime anyone can mistake because we are human being na sir that's why but no worry.
    Again i am saying sorry for that sir.

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

      Sir am i right or wrong sir please tell me

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

      package com.javabykiran.Final;
      public class A {
      final B b; // NO ERROR as we have. //done the initialisation in constructor
      final int x;
      A(){
      b =new B();
      x=28;
      }
      }
      class B {
      }

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

      no need to worry we all are human beings.

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

    Tried to watch it but l don't understand this guy at all

  • @ynkumarnitin
    @ynkumarnitin 9 месяцев назад

    at 22:48 , she is correct, didn't get any explanation

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

    you are a great teacher and my humble request to you kiran sir please provide us free course you will be blessed by god i know nothing is free in this world but if you are giving half knowledge so you also can provide us full videos

  • @RealSlimShady-um6gf
    @RealSlimShady-um6gf Год назад

    You said interviewer will screw you up to this girl

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

    sir why wont you provide the same things for python???????

  • @xavier4107
    @xavier4107 10 месяцев назад +1

    Super & very helpful questions

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

    There is no global in Java is called instance

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

    Sir I'm from nonit please suggest me can i get a job in IT

  • @Pradeep-ut4hh
    @Pradeep-ut4hh Год назад

    I think all these trick questions should not be a parameter to hire students, maybe there should be a scenario and inteviewer should ask how the inteviewee would approach or maybe focus on how efficient code the interviewee writes, or focus on oops concepts and few imoprtance on trick questions like static and what will the value print all those.

  • @myWorldd860
    @myWorldd860 9 месяцев назад

    Someone else is writing the code🧐 33:50

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

    To hum kya kra

  • @gevariyameetb
    @gevariyameetb 8 месяцев назад +1

    Did she get good placement ? I have one vacancy i would like to hire her we can offer upto 15ctc.

  • @SheetalSharma-d9i
    @SheetalSharma-d9i 10 месяцев назад

    make the same for Web development

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

    Sir can the resume be of more than 1 pages?
    As i saw her resume is of 2 pages, that's why I'm asking

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

    her knoweldge is good ...

  • @amankumar-rb6su
    @amankumar-rb6su Год назад +4

    It's a great 👍 experience..by seeing this ❤ thankyou...make more series of java mocks

  • @MgM-zf2pw
    @MgM-zf2pw Год назад

    please, we need interview for python developer

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

    Where is your coaching

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

      In Pune For More Details Contact Us on 9075 777 123

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

    5 to 10 years experience ke liye mock interview start kijye sir

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

    Link for part 2 pin in comments section

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

    sir i waiting second part please upload

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

    Thank you sir 👍 for most important questions of core java .

  • @aman-oza108
    @aman-oza108 Год назад +1

    Great 👍

  • @pratik.784
    @pratik.784 Год назад

    Photo mein alag asli mein alag 😢

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

    amazing sir

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

    Hacker Hai bhai Hacker😂

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

    sir There are one doubt at 14:17 you say If class is Final then automatically the method of that class is become final we can't override it...
    But it's totally wrong because Each method in a final class can be individually declared as final or not. it is not a requirement for all methods in a final class to be final.
    please justify this doubt..

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

      If class is final then we cannot extend it
      And if method is final we cannot override it
      If variable is final we cannot reinitialise it.

  • @RupeshYadav-kt5dv
    @RupeshYadav-kt5dv Год назад +1

    Voice is very slow

    • @TheKiranAcademy
      @TheKiranAcademy  Год назад +2

      Thank you for your feedback. We will take it into consideration and strive to improve in the future.😊

  • @evolverse858
    @evolverse858 Год назад +2

    21:31 we can't call m1 method cuz main method is static and m1 method is non static method

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

      So for that reason he has created object of the class, so calling should be possible, unless it is not in other package.

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

    Nice 👌👌👌

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

    Very helpful.. I was pausing in between and trying to answer and helped me in quick revision.. Thanx

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

    Great interview

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

    23:09 why the calling is not possible?

    • @SriChaitanyaGandhari
      @SriChaitanyaGandhari Месяц назад

      @@CHALLENGESTORY if the 3 classes are in same package then we can access them but if they are in different packages then we get compile error

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

    38:06 😂

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

    It really helpful !!

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

    Amazing

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

    a very useful real time java interview process i have ever seen tq so much TKA

  • @guesswhoiam784
    @guesswhoiam784 Год назад +21

    I will give 6.5 / 10 to this girl.

    • @AnadiHirpara
      @AnadiHirpara Год назад +22

      bhai jis tarah se vo logic implement kar rahi hai i think 9/10 hona chahiye

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

      @@AnadiHirpara❤

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

      ​@@AnadiHirpara😅

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

      @@AnadiHirpara correct

    • @RealSlimShady-um6gf
      @RealSlimShady-um6gf 10 месяцев назад

      Don't expect freshers to learn in 1 hour. Over the period of time they learn with exposure. Their basics must be strong

  • @विचारप्रतापी

    Great......❤

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

    Very informative video

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

    Faculty must explain diamond problem. Any reason to tell her to close other projects to start with a new project.
    Min/Max is not using Streams API which is just 1 line instead of what she has coded.
    All these variables can be instance variables only. You cannot declare local variable with public final int xx = 10; inside a method? Also declaring them inside method for
    local variables
    public final int xx = 10;
    static int yy = 20;
    final static int zz = 1111; will give compile exceptions.
    final int aa; will compile but that is a dead variable. if used then you will get compile exception as it needs to be initialized
    new A().mx() will work instead of compile error at mx().

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

    Her knowledge was mind blowing 😮

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

    Waiting for part 2 please upload fast ❤❤❤❤