Back to Browse

#abstractclass #abstractmethods #javainterviewquestions What is Abstract class and Methods in Java ?

241 views
Jul 20, 2022
25:52

#abstractclass #abstractmethods #javainterviewquestions What is Abstract class and Methods with Example . Java Interview Questions on Abstract class and Abstract Methods. Below are list of interview questions covered in this video. 1. What is Abstraction in Java? 2. How to Achieve Abstraction in java ? 3. What is Abstract class? Explain with Example. 4. What is Abstract methods? 5.  When to use Abstract class in Java?- An abstract class can be used when we need to share the same method to all non-abstract sub classes with their own specific implementations. 6. When to use Abstract method in Java?- When the same method has to perform different tasks depending on the object calling it. 7. Can we make an abstract class without abstract keyword? 8. Abstract class must have only abstract methods. True or false?-False 9. Is it compulsory for a class which is declared as abstract to have at least one abstract method? - Not Mandatory 10. Can we declare abstract methods as private? Justify your answer? -No 11. Can we create Object of Abstract class ? 12. Can we instantiate a class which does not have even a single abstract methods but declared as abstract? 13. Can we declare abstract methods as private? Justify your answer? 14. Why final and abstract can not be used at a time? 15. What will happen if we do not override all abstract methods in subclass? 16. Why abstract class has constructor even though you cannot create object? 17. Can we declare variable as Abstract ? Thank you for watching. Please share this video with your friends and subscribe to the chanle. Thank you ! #sjprogrammingsolutions #javaprojects #javacoding #javaconcepts

Download

0 formats

No download links available.

#abstractclass #abstractmethods #javainterviewquestions What is Abstract class and Methods in Java ? | NatokHD