nadeem shake wrote:the question still remains in my stupid mind that how does the compiler come to know there are two methods with the same name but with different return types , does it do this checking during compile time ???
nadeem shake wrote:...and i hope that i can learn java from this forum and i have joined this forum with that intention in my mind...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
nadeem shake wrote:...and i hope that i can learn java from this forum and i have joined this forum with that intention in my mind...
My advice: Don't think that you can learn Java from this forum.
If you really are trying to learn on your own, you really should get a decent book - this one has a very good reputation - or read the Java Tutorials and follow the exercises thoroughly.
We can help with advice if you run into difficulties; but trying to learn a language as complex as Java from a forum like ours will be time-consuming and frustrating for both you and us.
Winston
Jesper de Jong wrote:
nadeem shake wrote:the question still remains in my stupid mind that how does the compiler come to know there are two methods with the same name but with different return types , does it do this checking during compile time ???
Ofcourse the compiler checks that at compile time. It analyzes your source code and sees that the met1() method in class Test39 has a different and incompatible return type (int) than the met1() method in its superclass Temp (void).
nadeem shake wrote:...and its not frustrating for people to help if they really want to help...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
nadeem shake wrote:...and its not frustrating for people to help if they really want to help...
You wanna bet?![]()
It very much depends on what your expectations are. If you're prepared to put in the time and effort to learn - and I have no reason to think you won't - and also to ask questions in a clear and precise way (have a look at the HowToAskQuestionsOnJavaRanch page, because there's a lot to know about it), I'm sure nobody will have any problems at all.
On the other hand, if you simply look on us as a service for answering whatever question comes into your head, you may get some pithy responses.![]()
Anyway, welcome to the Ranch, and the best of luck with your studies.
Winston
Not so fast naughty spawn! I want you to know about
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|