• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

difference between ovrride & overload

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
kindly tell me what is the difference between ovrride & overload
 
lowercase baba
Posts: 12751
51
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm sure that this has been answered many times on these forums. Further, any basic java book would also have the answer.

Have you tried to find the answer yourself yet?
 
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One doesn't like to answer this type of blank question, without some evidence you've tried yourself. This is because some people just try to use this site to get others to do their course homework.

Try Googling for the respective terms, then make an attempt at an answer. I'm sure people will then be happy to confirm the correctness, or otherwise, of your answer.
 
Ranch Hand
Posts: 1249
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by satyabira pradhan:
sir
kindly tell me what is the difference between ovrride & overload



May be Google is not working on your system, or you don't know how to use it. This is not a Question-Answers forum.

This is , if you have any problem during your work then you may clearify your confusions. But this is not for ready to Homework.

Pls check Google and also your text books, if you are still studying
 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, I would say, the OO principle is rather difficult for beginners. I myself also need some time to understand the OO and Java. But, you should check Google or search this forum in the first place before you post. I am very certain that you'll get the answers much faster than you post.
Okay, for your question regarding overriding and overloading, please check:
http://www.janeg.ca/scjp/overload/overridingMethods.html
http://www.jchq.net/certkey/0602certkey.htm

Moreover, there is a great Java book for beginners: Head First Java by Kathy and Bert Bates. Don't be fooled with its layout (rather unconventional) but it works much better than the boring standard Java text books.
 
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ankur Sharma:


May be Google is not working on your system, or you don't know how to use it. This is not a Question-Answers forum.

This is , if you have any problem during your work then you may clearify your confusions. But this is not for ready to Homework.

Pls check Google and also your text books, if you are still studying





This is a java beginner forum. he can ask such questions. There is nothing wrong.
 
Marshal
Posts: 64704
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sunil Kumar Gupta writes:-

This is a java beginner forum. he can ask such questions.

Agree. Stop being rude to the original questioner.

An overloaded method (well actually overloaded methods) means several
methods in the same class with the same identifier. Find System.out in the API; it is (I think) a PrintStream object. It has about 10 versions of the print() method. These are overloaded methods; each has a different set of parameters.

An overridden method is a method which has the same signature (identifier and parameters) as a method in its superclass, but has a different body.

If there are any more details required, this topic will come up in your lectures or you can find it in the books.
Also here, and here, in the Java tutorial.
 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first of all i am very much thankful to everyone who gave me answer to my question,but except only one man,he is mr Ankur Sharma .he really made me depressed.as a beginer i ask this question. i like mrSunil Kumar Gupta
's answer .thank you sir.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!