0% found this document useful (0 votes)
4 views

static_polymorphism_ Java Technical Interview

The document features a conversation between Ashay Nayak and Priya regarding a technical interview focused on Java. Ashay explains the concepts of overloading and overriding static methods, emphasizing that while static methods can be overloaded, they cannot be overridden due to the differences in binding at compile time and runtime. The document also includes references to additional resources for career growth and Java articles.

Uploaded by

oxem
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

static_polymorphism_ Java Technical Interview

The document features a conversation between Ashay Nayak and Priya regarding a technical interview focused on Java. Ashay explains the concepts of overloading and overriding static methods, emphasizing that while static methods can be overloaded, they cannot be overridden due to the differences in binding at compile time and runtime. The document also includes references to additional resources for career growth and Java articles.

Uploaded by

oxem
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

ASHAY NAYAK

EP. 1
ASHAY NAYAK
Java interview
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK
Hi Priya! I am Ashay.

ASHAY NAYAK
I am going to take
your technical round.
Hey Ashay! Thanks
for giving me this

ASHAY NAYAK
oppportunity.

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK
ASHAY NAYAK
I am going to ask
few Java Questions.
okay.

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK
Can we Overload or

ASHAY NAYAK
We can overload
Override static
static methods but we
methods in java?
can't override static

ASHAY NAYAK methods.

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK Sure. We can overload as

ASHAY NAYAK
Can you elaborate?
we can have two or more
static methods with the

ASHAY NAYAK
same name and different
arguments.

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK But, overriding static methods doesn't

ASHAY NAYAK work because method overriding is


based on dynamic binding at runtime

ASHAY NAYAK and the static methods are bonded


using static binding at compile time.

ASHAY NAYAK
However, program gets excuted
hmmm... successfully. It's just overriding static
method doesn’t override the method.

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK
Example
ASHAY NAYAK
Overload

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
ASHAY NAYAK
Example
ASHAY NAYAK
Override

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak
Check out my YOUTUBE
VideoS For career growth
Link in comment...

By Ashay Nayak
Check out my article
on Java

ASHAY NAYAK
Link in comment...

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK

By Ashay Nayak
ASHAY NAYAK
To Be Continued...

ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
ASHAY NAYAK
By Ashay Nayak

You might also like