Back to Browse

Interview questions on constructor in java | Java interview questions and answers in hindi

325 views
Oct 25, 2022
10:30

In this video, Interview questions on constructor in java | Java interview questions and answers in hindi ============================================================ Link of post on the website: https://javagoal.com/constructor-in-java/ Instagram: https://www.instagram.com/javagoal/ Related video : Constructor in java with example: https://youtu.be/pS32-eNeDGE Constructor overloading: https://youtu.be/ZdzEPpG84oc Constructor chaining: https://youtu.be/XzzyNxXi-34 Method in java : https://youtu.be/fO7EXMSDWKw ============================================================ In this video we will cover details of array in java. 1. Can we use abstract keyword with constructor? 2. Why constructors cannot be abstract in Java? 3. Can an abstract class in Java have a constructor? 4. Can we have a Constructor in an Interface? 5. Can we use final keyword with constructor? 6. Why constructors cannot be final in Java? 7. Can we use static keyword with constructor? 8. Why constructors cannot be static in Java? 9. Can we use private keyword with constructor? 10. Can class be extended when a constructor is declared private? 11. What is default constructor ? 12. What is Parameterized Constructor ? 13. Can we have both Default Constructor and Parameterized Constructor in the same class? 14. What is constructor overloading in java? 15. How does Java compiler differentiate among multiple constructors in a class? 16. Can we have a class with no Constructor in it ? What will happen during object creation ? 17. What is constructor chaining in java? 18. Why do we use/need constructor chaining? 19. How to call one constructor from another constructor in Java? 20. What is the use of this keyword in constructor chaining? 21. What is the use of super keyword in constructor chaining? 22. Can we use super keyword without inheritance? 23. Can we have this and super in the same constructor? 25. Is it possible to call a sub class constructor from super class constructor? ============================================================ ============================================================ Chapters:- 0:00 Introduction 0:36 What is method chaining ? 2:15 What is constructor chaining ? 6:16 How to perform constructor chaining ? 10:56 Rules of constructor chaining? 12:39 Need/Advantage of constructor chaining ============================================================ Coding practices: Print triangle in java, Print pyramid in java, Print diamond in java : https://youtu.be/Xijb88BUj8A ============================================================ 1. One dimensional Array: https://youtu.be/UCwnr0x7-_c 2. Two dimensional Array: https://youtu.be/TreLyQ9ZIz4 3. Array Practices: https://youtu.be/QE1pTDdu_OY ============================================================ Other important videos: 1. Difference between local and global variable wit practical example: https://youtu.be/XowMnbrruVE 2. Data types in Java with practical example: https://youtu.be/cnkAUQtx_Xw 3. What is variable and memory representation with practical example https://youtu.be/Iv-eJ-e5hS4 4. What is the difference between static and non static variables https://youtu.be/XdpdjN9J5NU 5. Operators in java: https://youtu.be/O9qpOBCZ9nY 6. If statement | nested if else statement : https://youtu.be/DV0ihQ1ju60 7. Switch statement in java in hindi: https://youtu.be/qdGKicTWFIc 8. for loop in java: https://youtu.be/HfvlXetGqJc 9. do while loop in java: https://youtu.be/aG2rzyEyxlk 10. break statement in java : https://youtu.be/Dnhqb8o7R68 11. continue statement in java: https://youtu.be/m1Bu_dn0AUg Instagram: https://www.instagram.com/javagoal/

Download

0 formats

No download links available.

Interview questions on constructor in java | Java interview questions and answers in hindi | NatokHD