20 Basic Core Java Interview Questions & Answers- TCS, Accenture, Cognizant, Infosys, Wipro, HCL

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

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

  • @CareerRideOfficial
    @CareerRideOfficial  3 дня назад

    💡 If this video helped you prepare for your interview, consider supporting the channel using the Super Thanks button. Your contribution helps us create more videos to help you level up. Thank you! 😊

  • @ig_haxie
    @ig_haxie 2 года назад +113

    Default is only within package, Not from anywhere like public. Protected can be accessed within own package and also in different package but the class must be inheriting the class where it is defined as protected

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

      Pp0

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

      ...

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

      I guess outside the package also we can but only by creating instance of the class not by inheriting

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

      If we use different package then public and protected helps.only....and protected helps only if we use sub class....creating instance would not help in protected ..as well as default when it comes to different package

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

      O​@@kiranshetty5011

  • @ambikeya_tech
    @ambikeya_tech 9 месяцев назад +10

    Thanks for sharing valuable insights! Great resource for preparing interviews in top IT companies. Appreciate the comprehensive list of core Java questions and answers.

  • @status__world...9038
    @status__world...9038 Год назад +33

    What a explanation bro well done
    Keep in extra 20 or 30 Questions and answers please I humble request ❤❤❤❤

  • @MounikaBhuvanagiri
    @MounikaBhuvanagiri 2 месяца назад +12

    Well explanation and thanks for your video that this video helped me to write a written test for interview and I have qualified and and I have selected to Interview 🎉

  • @vamsikrishnachekka85
    @vamsikrishnachekka85 Год назад +15

    Sir,you are helping freshers and we all thankful to you.😊😊😊

  • @shraddhahulle
    @shraddhahulle Год назад +15

    Thanks for such a amazing explanation😊🙏👏

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

    10:48 *little correction methods can have return type not need necessary to use return type sometime we can use void methods also

    • @nayirp_ayihskal
      @nayirp_ayihskal Месяц назад +1

      "Void" is a return type bro. Basically what he is trying to say is, in constructors we wont specify the return type and also we cant return any value from constructors. But in "methods" we strictly need to specify its return type.

  • @le226younuskhan8
    @le226younuskhan8 11 месяцев назад +5

    thank you for great explaination sir
    😇

  • @mansoorhassan4372
    @mansoorhassan4372 2 месяца назад +1

    Loved the way you explained.

  • @syedtanzeelHCAD
    @syedtanzeelHCAD 7 месяцев назад +9

    question no. 16 a file should have only one public class but here you mentioned two "public class Arithmatic and public class Main "

  • @pavanedits28
    @pavanedits28 12 дней назад

    Constructors are 3 types
    Default constructors
    Parameterized constructors
    Copy constructors
    Thank you

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

    Thanks for you clear Explantion

  • @jakubdudek4133
    @jakubdudek4133 2 года назад +9

    Maybe I'm picking on, but why so many people that are explaining basic Java's stuff used to give confused explanation about "final" keyword? Value of final variable can be change if it references to an object! Object itself does not become inmutable because of that keyword. The whole point of "final" is that you cannot change the reference itself that was once initialized/pointed!
    Apart from that little ambiguity I really like this video. :)

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

    Great Explanation bro. Go ahead

  • @jashwanthgottipati9262
    @jashwanthgottipati9262 5 месяцев назад +1

    Thanks for the video.

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

    2nd and 3rd question making confusion.... In JVM and Compiler

    • @chiranjibsuvam8916
      @chiranjibsuvam8916 Месяц назад +1

      Why its making confusion its simple. Java virtual machine contains the compiler which can run the java code on any machine

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

    Thank You Sir 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼

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

    Thankyou so much sir

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

    Sir very help full video

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

    Thank you so much
    It is so helpful 😊

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

    Great explanations !

  • @bandreddijayanth2456
    @bandreddijayanth2456 11 месяцев назад +1

    Bro numpy and panda packages raakapote dsa ki python choose cheyyochha

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

    what is diff between No arg constructor & default constructor?

    • @SanhNguyen-cw7ry
      @SanhNguyen-cw7ry 2 года назад

      Same question

    • @divyabalakrishnan7253
      @divyabalakrishnan7253 2 года назад +4

      Class test {
      Int a ;
      test (){ //no argument constructor
      Sout (“a”+a); }
      test (int b) {
      this.a=b;
      //parameterized constructor
      }
      }
      Main class {
      Psvm (String args[]) {
      test obj=new test (5);
      }}// while creating obj we mentioned the class name that one is called default constructer
      😅iam not sure about this but i tried my level best thank you

    • @surabhisahu1231
      @surabhisahu1231 2 года назад +4

      Only difference is if you're going to write your code without any constructor then jvm(compiler) will automatically create a default constructor and no argument constructor means you have to define a constructor without any parameters.

    • @aslam-kg4xo
      @aslam-kg4xo Год назад +2

      If you do not declare a constructor explicitly, the compiler automatically assigns a default constructor to the class. And that constructor is a no args constructor.
      That is why you are able to create a class with empty brackets even if the class doesn't have any constructor.
      Simply put, if you don't declare a constructor in a class, there will be a default no arg constructor.

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

      default constructor apne app bnta he means vo declare kro na kro ban jata he , aur tumhe agar no arg constructor means agr without arg new koi object bane to tum kya krvana chahte ho tab , uske liye vo tum no arg const me likh skte ho ki- Ex, koi new object bane jisme koi arg nhi dale the to fir bhi tum kuch msg print krvana chahte ho ki u created new object , to vo tum no arg constructor me likh skte ho , or ye kam tum default constructor me nhi kr skte kyuki vo to apne aaap create hoga usme tum kuch changes nhi kr skte abbhi hmne kiya ki new object bne tab new object creatd msg pass ho to vo default const se tum asa nhi kr paoge.

  • @akki-xz2li
    @akki-xz2li 11 месяцев назад +1

    Is this questions are enought for tcs nqt interview? Can you plz reply

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

    Nice for core interviewer ask questions me on platform independent .

  • @RajaReddy-ob2wk
    @RajaReddy-ob2wk Год назад

    Nice presentation Thanks

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

    Great content ❤

  • @sujithanagasuri6151
    @sujithanagasuri6151 29 дней назад

    Function defined with in the class is called as method

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

    Watching this video 1hr before my interview..and regretting y i dint get this video before n early....😢...super explanation sir... 🙏👌

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

    Thanks

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

    Explanation is nice,Thank you sir

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

    sir, in question 9 example of method overloading you gave example of myMethod function which has different return data type, one has int and one has double! so can method overloading can happen if there is different return data type of method??

  • @RohanSingh-my3nl
    @RohanSingh-my3nl Год назад

    Nice ❤

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

    Perfect explanation....

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

    Sir I go for interview so I need the question and answer for freshers

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

      Hii I m also now applying for jobs..So can u help what kind of questions they ask

  • @abhishek.bansal05
    @abhishek.bansal05 2 года назад

    Very nice videos

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

    Can you tell mee some programming languages which deals ECE

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

    Thanks for this amazing video sir 😊

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

    Thanks for this amazing video... 👍

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

    👍

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

    Sir please help in the programs also

  • @ram5877
    @ram5877 2 года назад +3

    Thank you sir ❤

  • @k.rajasekhark.rajasekhar3404
    @k.rajasekhark.rajasekhar3404 9 месяцев назад

  • @masterikrav
    @masterikrav 2 года назад +7

    A 30mL of alcohol solution is made of 60% water. How much of this solution must be replaced with a 90% alcohol solution so that the resulting solution has an alcohol content of 60%?​
    Sir please help with this Q

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

      The solution for "x" is 0 mL. This means that no amount of the original solution needs to be replaced with the 90% alcohol solution to achieve a resulting solution with 60% alcohol content. The original solution already contains the desired alcohol content of 60%, and adding any amount of the 90% alcohol solution would only alter the original composition.
      i still have no idea y i ansd this q

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

    There's no array que , for loop que , comparator comparable and many things are not in this video

  • @Pooja-kr6wl
    @Pooja-kr6wl Месяц назад

    Sir nots link tyar krun send krt ja

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

    Hello, how can I listen to these videos in Turkish?

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

    Where are copy constructor

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

      Copy constructors are nothhing but object created by using another object

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

    can static method override?

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

    Hii i am a bcom student can get java developer

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

    Hi sir i need a coding round questions. pls

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

    Thank u sir

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

    Sir what java operator

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

    Bro any one Can tell me constructor returns any value

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

    Iam studying in BTech 1St year ECE group

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

      Enjoy your btech and after never judge the career with non sense package.experience your zeal to work in your dream job.

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

      😂😂😂😂

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

    10:49: A method must have a return type.
    Funniest shit I have read today :xD

    • @CareerRideOfficial
      @CareerRideOfficial  2 года назад +18

      Java requires that a method declare the data type of the value that it returns. If a method does not return a value, it must be declared to return void.

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

      What's so funny? It is mandatory to specify return type of a method in Java.

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

      Ohh​@@chetanmaskara8565

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

    in.question 2 what is difference between.bite code n machine code

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

    Sir is these questions are enough for freshers interview?

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

      and some 5-6 basic codes

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

      @@NorwayAbbai nahi bhai ye bhi kaafi nahi hai

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

      @@ashutoshrai2717 I have gone through 7 interviews the same questions are asked in a confusing manner in my opinion these are enough

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

      @@ashutoshrai2717 did you go through any interviews recently?

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

      @@NorwayAbbai yes

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

    A package in java is used to group related class are it is a collection of related interface

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

    Hi sir, I'm diploma student I'm writing wipro exam after that I'll have interview this video is use for me...

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

    Hello sir

  • @Mahi095
    @Mahi095 2 года назад +4

    Please provide us PDF sir

  • @rampraveen7002
    @rampraveen7002 2 года назад +40

    Sir I am fresher I need tha questions and answers

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

    .

  • @VaibhavSharma-pu6ok
    @VaibhavSharma-pu6ok 4 месяца назад

    Bro please don't try to use or imitate that fake accent. Its clearly visible that you don't talk like that naturally.It's so irritating while watching the video. Just talk normally in english remove that fake accent.

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

    Thank u so much sir for this valuable video 😊

  • @JaiganeshP-wl1ns
    @JaiganeshP-wl1ns 8 месяцев назад

    Thanks brother

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

    Thank you sir

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

    Bro numpy and panda packages raakapote dsa ki python choose cheyyochha

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

    thank you sir