Java Interview Questions | Core Java

  Рет қаралды 26,744

Byte Programming

Byte Programming

Күн бұрын

Пікірлер: 45
@saikrishnachimakurthi5238
@saikrishnachimakurthi5238 4 жыл бұрын
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!
@shalinijha764
@shalinijha764 4 жыл бұрын
Hi, your videos are very informative,short and useful. keep up the good work. Thanks!!
@nitinagrawal6637
@nitinagrawal6637 4 жыл бұрын
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.
@azharmobeen
@azharmobeen 4 жыл бұрын
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 4 жыл бұрын
@@ByteProgrammingVedantHarish I just tried it, it doesn't give an error
@manasdeora4601
@manasdeora4601 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 жыл бұрын
@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.
@munigadapa
@munigadapa 4 жыл бұрын
Very nice explanation
@vishnugovindan8550
@vishnugovindan8550 4 жыл бұрын
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.
@vrushalishinde7146
@vrushalishinde7146 4 жыл бұрын
Sir thank you so much for informative video... Please provide the interview questions on spring and collection and multithreding..
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure! Stay tuned!
@saurabhkailashchandrapuran8609
@saurabhkailashchandrapuran8609 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.
@bhargavhr8834
@bhargavhr8834 4 жыл бұрын
Fantastic content
@Shiva-zy7jq
@Shiva-zy7jq 4 жыл бұрын
Thank you. It is helpful.
@Ravikumar-gj6qw
@Ravikumar-gj6qw 4 жыл бұрын
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
@neerajrajak6150
@neerajrajak6150 4 жыл бұрын
Very Informative, and concepts cleared so well. Thank you so much
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Glad it was 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!
@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
@deepakjava3506
@deepakjava3506 4 жыл бұрын
Awesome
@sreeni4344
@sreeni4344 Жыл бұрын
Inheritance --- small correction its extends keyword not extend
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
Thank u so much please make video related to spring n springboot..
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure! Stay tuned!
@ussharma1
@ussharma1 4 жыл бұрын
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.
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
@Ullas Good to know! you liked the content. Stay tuned !
@MrLuk919
@MrLuk919 4 жыл бұрын
Nice compilation. Could you provide design pattern questions also
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure! Stay tuned.
@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 : kzbin.info/www/bejne/iofPfJeuoJ1on9U
@bhimraosudrik6664
@bhimraosudrik6664 4 жыл бұрын
@@ByteProgrammingVedantHarish I tried with int .
@bibhuprasadmohanty8907
@bibhuprasadmohanty8907 4 жыл бұрын
sir, plz provide more interview about collection
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure ! Stay tuned
@simhaitschool1556
@simhaitschool1556 4 жыл бұрын
Hi please provide more interview questions on collections and multithreading concepts
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Working on it. Stay tuned!
@KajalGupta-mi3sg
@KajalGupta-mi3sg 4 жыл бұрын
Too much advertisement bro
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
@Kajal Let me check! Stay tuned!
@bibhuprasadmohanty8907
@bibhuprasadmohanty8907 4 жыл бұрын
sir plz provide more interview question about collection
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Sure. Stay Tuned!
Collection Concepts & Interview Questions (Part-1)
20:59
Byte Programming
Рет қаралды 16 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Hibernate Interview Questions / Interview Preparation
30:14
Byte Programming
Рет қаралды 20 М.
Microservices Interview Questions | Interview Preparation ( Part 2 )
25:52
Most Asked Hibernate Interview Questions | Interview Preparation
21:24
Byte Programming
Рет қаралды 10 М.
Java 8 Interview questions/Interview Preparation
24:08
Byte Programming
Рет қаралды 131 М.
Rest Interview Questions/Interview Preparation
13:54
Byte Programming
Рет қаралды 28 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН