What is the difference between method overriding and overloading?


Answer:

-Overriding is a method with the same name and arguments as in a parent, whereas
overloading is the same method name but different arguments.


Share To Friends Via:
        






More Questions For Programming in Java:



  What is Java? (Answered)
What is Java? .
Posted On:Sat 20, March 2021 20:03:42 pm
  What are the main features of java? (Answered)
What are the main features of java? .
Posted On:Sat 20, March 2021 20:05:08 pm
  What are pass by reference and passby value? (Answered)
What are pass by reference and passby value? .
Posted On:Sat 20, March 2021 20:06:02 pm
  What is the Java API? (Answered)
What is the Java API? .
Posted On:Sat 20, March 2021 20:06:40 pm
  What is the Java Virtual Machine (JVM)? (Answered)
What is the Java Virtual Machine (JVM)? .
Posted On:Sat 20, March 2021 20:07:19 pm
  What is variables and their types? (Answered)
What is variables and their types? .
Posted On:Sat 20, March 2021 20:08:37 pm
  what is dot operator? (Answered)
what is dot operator? .
Posted On:Sat 20, March 2021 20:09:39 pm
  Define strings? (Answered)
Define strings? .
Posted On:Sat 20, March 2021 20:10:13 pm
  What is serialization? (Answered)
What is serialization? .
Posted On:Sat 20, March 2021 20:10:48 pm
  What are different types of access modifiers? (Answered)
What are different types of access modifiers? .
Posted On:Sat 20, March 2021 20:11:26 pm
  What is an abstract class? (Answered)
What is an abstract class? .
Posted On:Sat 20, March 2021 20:12:24 pm
  What are class variables (Answered)
What are class variables .
Posted On:Sat 20, March 2021 20:13:27 pm
  What is the Collection interface? (Answered)
What is the Collection interface? .
Posted On:Sat 20, March 2021 20:14:12 pm
  What must a class do to implement an interface? (Answered)
What must a class do to implement an interface? .
Posted On:Sat 20, March 2021 20:14:51 pm
  What is the Collections API? (Answered)
What is the Collections API? .
Posted On:Sat 20, March 2021 20:15:28 pm
  What is an array? (Answered)
What is an array? .
Posted On:Sat 20, March 2021 20:16:21 pm
  What is a list iterator? (Answered)
What is a list iterator? .
Posted On:Sat 20, March 2021 20:17:11 pm
  What is the main difference between a String and a StringBuffer class? (Answered)
What is the main difference between a String and a StringBuffer class? .
Posted On:Sat 20, March 2021 20:17:58 pm
  When do we use java serialization? (Answered)
When do we use java serialization? .
Posted On:Sat 20, March 2021 20:19:45 pm
  What is the main difference between shallow cloning and deep cloning of objects? (Answered)
What is the main difference between shallow cloning and deep cloning of objects? .
Posted On:Sat 20, March 2021 20:21:47 pm
  What are wrapper classes? (Answered)
What are wrapper classes? .
Posted On:Sat 20, March 2021 20:22:49 pm
  What is the difference between an instance variable and a static variable? (Answered)
What is the difference between an instance variable and a static variable? .
Posted On:Sat 20, March 2021 20:23:45 pm
  What is type casting? (Answered)
What is type casting? .
Posted On:Sat 20, March 2021 20:26:16 pm
  What is a user defined exception? (Answered)
What is a user defined exception? .
Posted On:Sat 20, March 2021 20:26:58 pm
  What is an instanceof operator? (Answered)
What is an instanceof operator? .
Posted On:Sat 20, March 2021 20:27:54 pm
  What are runtime exceptions? (Answered)
What are runtime exceptions? .
Posted On:Sat 20, March 2021 20:28:47 pm
  What is the difference between an interface and an abstract class? (Answered)
What is the difference between an interface and an abstract class? .
Posted On:Sat 20, March 2021 20:30:26 pm
  what is a package? (Answered)
what is a package? .
Posted On:Sat 20, March 2021 20:31:20 pm
  Why do threads block on I/O? (Answered)
Why do threads block on I/O? .
Posted On:Sat 20, March 2021 20:32:16 pm
  What is the List interface? (Answered)
What is the List interface? .
Posted On:Sat 20, March 2021 20:33:41 pm

More Questions Categories:


About Us

Contact us

Terms of use | Privacy policy

Follow Us:               

All Rights Reserved © 2024; pscustudies.com