File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Multithreading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Multithreading " Watch "Multithreading " New topic
Author

Multithreading

aryan sahu
Greenhorn

Joined: Oct 12, 2011
Posts: 11


hello i am a new bie , i am having confusion regarding threads. Do the codes imply the same thing.
example



javascript:emoticon('');
Harsha Smith
Ranch Hand

Joined: Jul 18, 2011
Posts: 287
The first code won't compile
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
In the first code you are trying to mark the overridden instance method to static - so you get the compile time error.

This behavior is common when you implement an interface or extend a super class.



Have a look at the table in the Summary section of this tutorial - http://download.oracle.com/javase/tutorial/java/IandI/override.html

As you see the error you get is 'static methods cannot hide the instance method in the super class / interface'.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multithreading