Core Java Interview Question on Inheritance | Automation Testing interview preparation by MKT

Core Java Interview Question on Inheritance | Automation Testing interview preparation by MKT

SoftwaretestingbyMKT

1 год назад

34,239 Просмотров

For my upcoming courses visit https://grotechminds.com/courses/
To join my upcoming courses/classes please fill below form
https://forms.gle/rKc15nunKdKvEa1E8

My Insta ID: https://instagram.com/_iammkt
Join this channel to get access to perks:
https://www.youtube.com/channel/UCKliIabx-RsHYTqjOiYegSg/join

Like, share and subscribe to the channel.
API Testing Playlist
https://www.youtube.com/watch?v=lMliQAutHDQ&list=PLQ7x7oTdExNLTqXnPPSfnT2zm45hTh_Bv

Core Java Playlist
https://www.youtube.com/watch?v=-P8XuT9NLTI&list=PLQ7x7oTdExNIFYqnAKiZ3GL_l_HuEW3US

Selenium Playlist
https://www.youtube.com/watch?v=5aKnhpj5vHk&list=PLQ7x7oTdExNL6vXCwxH5BtHqwB8p3xwwz

Manual testing Playlist
https://www.youtube.com/watch?v=DKXkyzBV5Hw&list=PLQ7x7oTdExNIcM1lhKw1KdBeAq_VYD6fX

Watch my other videos too,
Inheritance in Java video
https://www.youtube.com/watch?v=gd5u8_psmjM

Single level inheritance video
https://www.youtube.com/watch?v=pGfaH8FYik0

Multi Level Inheritance in Java video
https://www.youtube.com/watch?v=__7hbM6MtPw

Hierarchical Level Inheritance in Java video
https://www.youtube.com/watch?v=L0bbzbl4FbE

Hybrid Level Inheritance in Java video
https://www.youtube.com/watch?v=vr7L8cLK7T4

Method Overloading in Java video
https://www.youtube.com/watch?v=vFURAUQJQdI

This calling statement in Java or this() video
https://www.youtube.com/watch?v=fyzOz3m0sfU

Constructor Overloading in Java video
https://www.youtube.com/watch?v=tnHufHX3GXM

Constructor in Java video
https://www.youtube.com/watch?v=jlPCtEw-OzA

Static and Non Static Variables in Java video
https://www.youtube.com/watch?v=Wk6dlzNFCrs

How to Create an Object in Java & Handing non Static method video
https://www.youtube.com/watch?v=nrUKJAOXfgU

Multiple static methods inside a single Class | How to deal it?
https://www.youtube.com/watch?v=nx1iidySXdU

Methods in Java | What exactly is public static void main(String[] args)
https://www.youtube.com/watch?v=4X-mGh97wYk

Types of Variables in Java | Local,Global & Final Variables
https://www.youtube.com/watch?v=ZldncvxC-x0

Variable and Datatype in Java
https://www.youtube.com/watch?v=6N57XglKpiA

Easy way to run a program in Java | First program in Java
https://www.youtube.com/watch?v=e7f7Gq7Tu2E

Class and Object in java
https://www.youtube.com/watch?v=BHk5Wj28Q5w

50 Keywords in Java
https://www.youtube.com/watch?v=uuPgtntkX04

Tokens in Java
https://www.youtube.com/watch?v=SKQe42Tdatk

How Java internally works?| Compilation & Interpretation
https://www.youtube.com/watch?v=Xy9n1yaOI3I

Introduction to Java | History of Java |Features of Java
https://www.youtube.com/watch?v=-P8XuT9NLTI
Derived model in software development life cycle video link
https://www.youtube.com/watch?v=kHn-qpkloBs

Prototype model in software development life cycle video link
https://www.youtube.com/watch?v=30ln8QUGfBM

Spiral model in software development life cycle video link
https://www.youtube.com/watch?v=yt1IXzIlJDY

Verification and Validation in software development life cycle video
https://www.youtube.com/watch?v=SbfCln1cZBo

Hybrid model in software development life cycle video video
https://www.youtube.com/watch?v=KrrcwoE-nC8

Waterfall model in software development video link
https://www.youtube.com/watch?v=5M0wC_i4x1c

Software development life cycle video link
https://www.youtube.com/watch?v=QxoP26bCCcg


What is manual testing, it's advantages and disadvantages video link
https://www.youtube.com/watch?v=QnTSwUGQsso

What is Software testing video link
https://www.youtube.com/watch?v=DKXkyzBV5Hw

I work in the IT industry as a Senior Software QA Engineer in Bangalore, India and I have worked on mobile applications, web applications, and API testing.
The main reason behind this channel is to educate people about software testing so that it will helpful for them to choose the right career and also to prepare for their interviews.

Adding my blog link
http://softwaretestingbymkt.blogspot.in

Adding my personal mail Id:
[email protected]

Adding my Quora profile link here:
https://www.quora.com/profile/Manish-Kumar-Tiwari-11

Adding my Twitter account here,
(@MANISH171094): https://twitter.com/MANISH171094
or
(@softwaretesti16): https://twitter.com/softwaretesti16
Facebook Page:
https://www.facebook.com/stbymkt

Join us on Telegram today,
SoftwaretestingbyMKT
For the latest update on software jobs and to discuss each and everything about Software Testing also get an opportunity to get on an audio/video call with me directly to you.
I make videos on daily basics and also help student all over the world for FREE. If my videos are helpful in anyway help "SoftwaretestingbyMKT" reach billions by supporting
https://www.instamojo.com/@SoftwaretestingbyMKT
OR
https://www.paypal.com/paypalme/IAMMKT

Тэги:

#softwaretestingbymkt #mkt #manish_kumar_tiwari #software_testing_by_mkt #Best_YouTube_channel_for_software_testing #software_testing #software_testing_tutorial
Ссылки и html тэги не поддерживаются


Комментарии:

@chandrakantwaingankar3635
@chandrakantwaingankar3635 - 07.12.2023 06:53

No

Ответить
@SwapnilDangare
@SwapnilDangare - 03.11.2023 11:48

no

Ответить
@alokcreation9466
@alokcreation9466 - 01.11.2023 05:45

No

Ответить
@bharathnekkanti3763
@bharathnekkanti3763 - 30.10.2023 19:03

Yes... We can inherit the properties of sub class in to super class by up casting in this up casting child class will hide. Then we have to do the downcasting in the expliste way... Then we can access the sub class properties to the super class. With out doing up casting we are not able to do the downcasting.

Ответить
@yonelantlokwana3085
@yonelantlokwana3085 - 26.10.2023 11:23

No, only a child can inherit not a parent inheriting from a child.

Ответить
@jaybalumamacreation8340
@jaybalumamacreation8340 - 29.09.2023 21:33

Yes

Ответить
@sairak3514
@sairak3514 - 21.09.2023 18:04

No, it is not possible.

Ответить
@radhad9798
@radhad9798 - 21.09.2023 11:48

Yes, super class can inherit the properties of sub class

Ответить
@firthousethasintaj4031
@firthousethasintaj4031 - 05.09.2023 20:04

Yes, super class inherit the properties for ad ub class

Ответить
@99565554
@99565554 - 30.08.2023 20:19

Yes by upcasting concept

Ответить
@short-video-creation
@short-video-creation - 30.08.2023 18:29

Yes by getter and setter method

Ответить
@nicolasminicucci7347
@nicolasminicucci7347 - 24.08.2023 23:32

Imposible, in POO the super class is just static and the child class can take the super class prop to modify and change it.

Ответить
@narayananani2749
@narayananani2749 - 17.08.2023 08:37

Yes,we can call

Ответить
@supriyasugandhi9971
@supriyasugandhi9971 - 17.08.2023 06:20

No it is not possible superclass inherit the property of subclass but we can do it forcefully by downcasting.

Ответить
@priyankaavhad1945
@priyankaavhad1945 - 11.08.2023 18:25

Course details plz

Ответить
@kavya197
@kavya197 - 27.07.2023 14:32

By using of extends we can get properties from super class to sub class.

Ответить
@sachinkanchan5506
@sachinkanchan5506 - 23.07.2023 21:47

No

Ответить
@biswajitpanda5127
@biswajitpanda5127 - 22.07.2023 12:59

Downcasting explicitly

Ответить
@ritutanna
@ritutanna - 12.07.2023 09:36

Yes we can, by using Up-Casting

Ответить
@AnkitKumar-iu2rs
@AnkitKumar-iu2rs - 11.07.2023 20:34

Super class can't inherit the properties of child class. But we can create an object of a child class with the reference of the parent class....

Ответить
@yokesh0075
@yokesh0075 - 11.07.2023 13:45

We can do it with help of “super” keyword to share properties of child or parent or either between them.

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:32

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:32

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:32

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:32

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:32

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:31

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:30

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@Rj-en1gi
@Rj-en1gi - 10.07.2023 14:30

No, under normal circumstances, it is not possible to inherit a superclass into a subclass. Inheritance is a fundamental principle of object-oriented programming where a subclass can inherit properties and behaviors from a superclass

Ответить
@daksh_ahir
@daksh_ahir - 09.07.2023 10:40

Yes, explicitly

class Animal{
void eat(){
System.out.println("This animal can eat");
} }
class Bird extends Animal{
void fly(){
System.out.println("This animal can fly");
} }
class Program{
public static void main(String args[]){
Animal a=new Bird();
((Bird)a).fly();
} }

Ответить
@maheshhande4252
@maheshhande4252 - 05.07.2023 21:18

By upcasting

Ответить
@skkamaluddin4632
@skkamaluddin4632 - 04.07.2023 09:21

No, the Vice versa is possible because whenever any class inherits the property of any class then it's always termed as child class not super class.

Ответить
@karmaaa5353
@karmaaa5353 - 03.07.2023 18:56

by using this keyword??

Ответить
@irfanqureshi339
@irfanqureshi339 - 02.07.2023 17:45

S

Ответить
@ayeshakhan2032
@ayeshakhan2032 - 26.06.2023 16:35

No

Ответить
@revatijadhav1088
@revatijadhav1088 - 24.06.2023 19:24

No

Ответить
@abhilashmahajan3647
@abhilashmahajan3647 - 23.06.2023 15:00

No it's not possible

Ответить
@murugeshwariravi6663
@murugeshwariravi6663 - 20.06.2023 22:21

In object-oriented programming, it is not possible for a superclass to inherit the properties of a subclass. inheritance is a one-way relationship, with subclasses inheriting from superclasses, not the other way around.

Ответить
@swabhimansinghparida9387
@swabhimansinghparida9387 - 19.06.2023 09:49

Downcasting

Ответить
@user-ov6hz9re8k
@user-ov6hz9re8k - 16.06.2023 21:15

Yes when we write
Webdriver driver=new chromedriver()

Ответить
@venkateshvenkatesh-ch8ju
@venkateshvenkatesh-ch8ju - 13.06.2023 06:42

No

Ответить
@akshaysakhare6716
@akshaysakhare6716 - 07.06.2023 22:01

No, in object-oriented programming, inheritance works in the opposite direction. A subclass (child class) can inherit properties and methods from a superclass (parent class), but a superclass cannot inherit properties defined in its subclasses. Inheritance allows subclasses to extend or specialize the behavior of the superclass.

Ответить
@ashishkumarswain7931
@ashishkumarswain7931 - 04.06.2023 08:40

Yes it is possible with upcasting we can convert child class objects to look like parent class object and access the properties of child class with help of parent class objects.

Ответить