UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Why using Overriding in Java ?

Asked by Last Modified  

40 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Java Trainer

There was a student who always pronounces "University" as "Univerkity". His teacher got angry and called the parents and asked to know the reason. Teacher got shocked as they are pronouncing "Capacity" as "Capakity" Later she called student's grand parent with curiosity. And agian shocked as they...
read more
There was a student who always pronounces "University" as "Univerkity". His teacher got angry and called the parents and asked to know the reason. Teacher got shocked as they are pronouncing "Capacity" as "Capakity" Later she called student's grand parent with curiosity. And agian shocked as they pronounced "publicity" as "publikity". So it is the duty of the teacher to override the speaking mechanism of the student. As she can't change parent's method and has access to student method. If you want to write your own implementation for any method, you should use overriding, so that it's child classes / it's objects can use the new mechanism. read less
Comments

Software Developer, Expertise in Java/J2ee Technology.

Overriding is one of the most powerful concept, which is required to achieve polymorphism in java.
Comments

Java,J2EE,Spring,Webservices,Hibernate,Cloud And Android Expertise

Override can be achieved only in subclass. This can be used to change the behavior of super class method in child class.
Comments

Experienced QA Trainer

Method overriding is used to provide the specific implementation of the method that is already provided by its super class. Consider a scenario, Bank is a class that provides functionality to get rate of interest. But, rate of interest varies according to banks. For example, Bank-1, Bank-2 and Bank-3...
read more
Method overriding is used to provide the specific implementation of the method that is already provided by its super class. Consider a scenario, Bank is a class that provides functionality to get rate of interest. But, rate of interest varies according to banks. For example, Bank-1, Bank-2 and Bank-3 banks could provide 8%, 7% and 9% rate of interest. read less
Comments

It is used when a class that extends from another class wants to use most of the feature of the parent class and wants to implement specific functionality in certain cases.
Comments

Java/J2EE, B.E./B.Tech/MCA SubjectsTraining

when a class that extends from another class wants to use most of the feature of the parent class and wants to implement specific functionality in certain cases. We know method overriding will be coming in inheritance. Consider a mother and her daughter. Lets think mothers will cook, so her daughter...
read more
when a class that extends from another class wants to use most of the feature of the parent class and wants to implement specific functionality in certain cases. We know method overriding will be coming in inheritance. Consider a mother and her daughter. Lets think mothers will cook, so her daughter will also cook. One day mother cooked a biryani for her daughter. By using the method cookBriyani(rice,vegetables,water,salt). { // mother style of cooking } But her daughter didn’t like it. So her daughter decided to prepare biryani by herself. She is also going to use same ingredients but she is going to prepare in her style. Daughter method is cookBriyani(rice,vegetables,water,salt){ // daughter style of cookling } Daughter made also biryani so without changing the name i.e cookBriyani(), also she used same ingredients (i.e rice,vegetables,water,salt) i.e same parameter but she prepared in different style. read less
Comments

Java/J2EE/SFDC Corporate Trainer

To achieve polymorphism
Comments

Trainer

please come to skype we will give free demo for JAVA .. our skype id " goonline4training"
Comments

Method overriding is used to provide specific implementation of a method that is already provided by its super class. Method overriding is used for runtime polymorphism
Comments

Tutor

yeas !!!
Comments

View 38 more Answers

Related Questions

While teaching IT Student (MCA / BCA / BTech), I found most of the students are not having good programming skills but they are still running behind to learn .NET / PHP / PYTHON / ANDROID / JAVA. Why is it so? What we should do better to improve a sound programming skills among most of IT Students?
on college days they r learning c,c++ and following faculties are also giving a road map of "programming means" thease languages only , even these are the languages are familier , where you justify them...
Amit Kumar
Hi, Can anyone help me on below queries? 1. What makes a class as "Thread safe class" ? 2. equals() method uses 3. Difference between String vs StringBuffer ?
There are three ways to construct thread-safe Java class which has some state: 1. Make it truly immutable 2.Make field volatile. 3.Use a synchronized block
Saurav
Which is the best programming language to learn in today's era? Java, C,C++, Python or any else?
Java is the best language because it is platform indepedent and opensource u can download java software at anywhere
Swati
0 0
5
Is it good to go for a Java coaching center and learn Java (with advanced Java) to improve my programming skills?
yes, Please check the Institute reviews and discuss with the tutor, what topics were covered in class. Ask about the practicals session and how many hours/duration of the course.
Gerda
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Understanding concept of Inheritance in Java
Inheritance: Acquiring a properties and methods from Parent class to Child class. For example, In some cases we can hear from any one of your relative or your friends will say like that "You are bahaving...

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

What Is Applet & Its Life Cycle?
What is Applet & its life cycle?Applet is a Java programme that can be embedded into HTML page.Java Applet runs on the java enables web browsers such as Mozilla & Internet Explorer.Applets are...
I

ICreative Solution

0 0
0

ListIterator Example
public class ListIteratorEx { public static void main(String args) { List<String> li = new ArrayList<String>(); li.add("java1"); li.add("java2"); li.add("java3"); li.add("java4"); ListIterator...
S

Sarthak C.

0 0
0

Mastering in Java Programming
Core java topics What is Java?Execution Model Of JavaBytecodeHow to Get Java?A First Java ProgramCompiling and Interpreting ApplicationsThe JDK Directory StructureUsing Eclipse Data types and Variables What...

Recommended Articles

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more