Java Interview Questions | Core Java

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 45

  • @saikrishnachimakurthi5238
    @saikrishnachimakurthi5238 4 роки тому +7

    I've watched many of your videos, they are truly amazing and very useful for the people to crack interviews, do you maintain any kind of material to share so that it becomes more helpful!

  • @manasdeora4601
    @manasdeora4601 4 роки тому +4

    Your videos are really helpful. Can you make an informative video that can tell how much package one can expect if he is a spring-boot developer with all range of experiences.

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому +3

      @Manas Lots of factor come into place when you try negotiate for package. Most common that affects directly are :
      i) Your college (Ex: Tier-I college have higher range to offer than Tier-II. )
      ii) Existing offer letter, if have any, you can ask above that package
      iii) In hand-salary of your last company. Some company do not bother about variable pay.
      iv ) Last but most important, feedback of your interviewer or client.
      Hope it helps.

  • @saurabhkailashchandrapuran8609
    @saurabhkailashchandrapuran8609 4 роки тому +4

    appreciate you efforts but you have covered very less questions. pls make more video on core java interview question and answer as similar this video.

  • @shalinijha764
    @shalinijha764 4 роки тому +3

    Hi, your videos are very informative,short and useful. keep up the good work. Thanks!!

  • @ussharma1
    @ussharma1 4 роки тому +3

    it will throw compile-time error, as ByteProgramming is not of type String.
    The content was really helpful and clearly presented, please provide interview Question/Preparations set for Collections, Multithreading.

  • @vrushalishinde7146
    @vrushalishinde7146 4 роки тому +2

    Sir thank you so much for informative video... Please provide the interview questions on spring and collection and multithreding..

  • @neerajrajak6150
    @neerajrajak6150 3 роки тому +1

    Very Informative, and concepts cleared so well. Thank you so much

  • @azharmobeen
    @azharmobeen 4 роки тому +1

    I feel there is a small correction.
    at 12:50 if you pass null for overloading example then there will not be any compile time error and it will call string method.

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому

      No, It would give compilation error. Both the arguments data type (String & Integer) can take null. So compiler would be not available to decide which method to call.

    • @radiodjcy
      @radiodjcy 3 роки тому

      @@ByteProgrammingVedantHarish I just tried it, it doesn't give an error

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 роки тому +3

    at time 14.17 the Example.java:11: error: no suitable method found for showMsg(Example)
    example.showMsg(new Example());
    ^
    method Example.showMsg(String) is not applicable
    (argument mismatch; Example cannot be converted to String)
    method Example.showMsg(Integer) is not applicable
    (argument mismatch; Example cannot be converted to Integer)
    1 error

  • @nitinagrawal6637
    @nitinagrawal6637 4 роки тому +1

    At 5:44 - Are you sure you achieve encapsulation the way you have told?
    At 18:43 - An Abstract class can have constructor also.
    At 20:20 - Since Java8, difference of providing the default implementation in Abstract class is no more a difference.
    At 21:20 - Map is still not direct part of Collection hierarchy.

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому

      @Nitin :
      1. How you suggest to achieve encapsulation ?
      2. Yes, Abstract class can have constructor. If you do not add, it would be added by default. But Can you create object of Abstract class?
      3. Default methods are part of Interface. I still do not get your point.
      4. Yes, Maps are not part of Collection.

    • @nitinagrawal6637
      @nitinagrawal6637 4 роки тому

      @@ByteProgrammingVedantHarish 1) For this one needs to understand the meaning of Encapsulation & Abstraction first.
      2) You can't create the object for both Abstract class & Interface, so that's not the difference. But you can have the constructor in Abstract class and not allowed for an Interface, that is part of difference.
      3) Right, now via default methods in Interface, one can provide some default implementation in Interfaces also like Abstract class.
      4) I pointed that, because most time it is not told, rather Maps are told as part of Collection. One can say Map as a Collection but must also be aware about that subtle point.

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 4 роки тому

    bro overloaing is also possbile in different class in industry everyone mistaking this OCJP question tq for this tuturials

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому

      How overloading is possible for 2 different class ? Please brief

    • @Ravikumar-gj6qw
      @Ravikumar-gj6qw 4 роки тому

      @@ByteProgrammingVedantHarish through subclass in same file or other file by using extends keyword with same functionalty, like finding the area of rectangle or square, one is parent version and other is child version

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

    Inheritance --- small correction its extends keyword not extend

  • @munigadapa
    @munigadapa 4 роки тому +1

    Very nice explanation

  • @Shiva-zy7jq
    @Shiva-zy7jq 4 роки тому +1

    Thank you. It is helpful.

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

    Hi! what is the purpose of making a public set method, dont you break encapsulation by doing so? I think you do. If you agree with me, you should make a pop up banner and correct this. Cheers!

  • @yoshitamahajan353
    @yoshitamahajan353 4 роки тому

    Thank u so much please make video related to spring n springboot..

  • @MrLuk919
    @MrLuk919 4 роки тому

    Nice compilation. Could you provide design pattern questions also

  • @bhargavhr8834
    @bhargavhr8834 3 роки тому

    Fantastic content

  • @vishnugovindan8550
    @vishnugovindan8550 4 роки тому +1

    15:36 In your overriding example, in Videos class, your overridden watchOverloadingVideo(int num) is returning int. Wont this cause a compilation error because return type is not the same as parent class method or a covariant type?

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому

      Hey Vishnu, Thanks for marking out error. While Reusing the previous example, return type got changed.

  • @bibhuprasadmohanty8907
    @bibhuprasadmohanty8907 4 роки тому +1

    sir plz provide more interview question about collection

  • @deepakjava3506
    @deepakjava3506 3 роки тому

    Awesome

  • @simhaitschool1556
    @simhaitschool1556 4 роки тому

    Hi please provide more interview questions on collections and multithreading concepts

  • @bhimraosudrik6664
    @bhimraosudrik6664 4 роки тому

    I tried and found that byte.watchOverloading(null); will not give the compiler error with Java 8. It will call the method of String parameter.

    • @ByteProgrammingVedantHarish
      @ByteProgrammingVedantHarish  4 роки тому

      @Bhimrao Sudrik : Have you used "String" and "Integer" as parameter data type?
      It will give below error :
      Exception in thread "main" java.lang.Error: Unresolved compilation problem:
      The method operation(String) is ambiguous for the type Byte
      Check this video : ua-cam.com/video/TVlKdxk85is/v-deo.html

    • @bhimraosudrik6664
      @bhimraosudrik6664 4 роки тому

      @@ByteProgrammingVedantHarish I tried with int .

  • @KajalGupta-mi3sg
    @KajalGupta-mi3sg 4 роки тому

    Too much advertisement bro

  • @bibhuprasadmohanty8907
    @bibhuprasadmohanty8907 4 роки тому +1

    sir, plz provide more interview about collection