Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
EJB and other Jakarta /Java EE Technologies
Runnable Interface
Amardeep Salkar
Ranch Hand
Posts: 46
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
public static void main(
String
str) {
System.out.println("String main()");
Runnable ren = new Runnable() {
public void run() {
System.out.println("Hello Amardeep");
}
};
}
How this program works....
Ulf Dittmer
Rancher
Posts: 43081
77
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Offhand I'd say it doesn't do much (and probably not what its author intended).
What happens if you execute it? Was that what you expected? If not, what did you expect?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
why doesnt this get compiled?
Runnable confusion
How setDaemon works
how to instantiate anonymous inner class?
regarding threads
More...