what is the object oriented concept that is used to achieve overloading and overriding job java

preview_player
Показать описание

What is the object oriented Concept that is used to achieve overloading and overriding ? Java Interview Question and Answer :

What is the object oriented Concept that is used to achieve overloading and overriding ?

"Polymorphism" -- overloading display(),display(str,str),display(int,str).
overriding -- Class A { display() } ? Class B extends A { display() }

Why does Java not support operator overloading ?

Operator overloading adds more complexity to read and maintain the code. To maintain code simplicity, Java doesn't support operator overloading.

Can we define private and protected modifiers for variables in interfaces?

Not possible, private & protected modifier is not allowed.

You can submit your resume for right Job

Рекомендации по теме
join shbcf.ru