As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've been trying to explain Java threading to a colleague who has never been exposed to multi-threaded applications, but apparently I'm not a very good teacher.
Can anyone recommend a good online or offline resource that can explain threading in a simple, step-by-step manner? I know it's a complex topic, but surely there exists an article, book, or other explanation that can result in an "Aha! I get it, finally!" moment.
Take a look at the Concurrency lesson in Sun's Java Tutorials. It's kind of big, but it's broken up nicely.
I would point him in the direction of the official tutorial, where this subject is discussed here.
It was the official java tutorial that got me started, and I'm not even a serious Java developer...
apart from the offical sun tutorial you may check these out
http://www.devshed.com/c/a/Java/The-Basics-of-Multiple-Threads-in-Java/
http://www.javabeginner.com/learn-java/java-threads-tutorial
Here is an old but good one, got me the Aha, I get it effect
http://www.javaworld.com/javaworld/jw-04-1996/jw-04-threads.html
After the simple tutorials, I strongly recommend getting Brian Goetz's book "Java Concurrency in Practice" if the colleague might pursue multi-threaded programming.
If you're using Swing also check SwingWorker:
http://java.sun.com/docs/books/tutorial/uiswing/concurrency/worker.html
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have opportunity to study either JAVA or PYTHON.
But I can't decide which to choose. I am already well versed with C++.
Can you plz tell which one is better with our experience.
I'd say go for python.
Its very easy to code.
This is a really relative questions and there is no "right" answer.
I personally would go with Python but I already took multiple Java classes. Python is fun and interesting but Java has been around for a while and isn't going anywhere any time soon.
If you are just learning object oriented programming language then I will suggest you to start with JAVA. Because if you don't understand the ideas behind the object oriented programming nicely, you will certainly legging behind. but if you have good experience on the ideologies (i.e. structured programming language or object oriented) then, its not a matter whether you should go with JAVA or Python. The basic concept is the main thing you need to learn.
I feel, there is not much about the language. Its just implementing the logic. You can use anything to express that. But the have to keep in mind about the drivers and libraries available for the language that you are selecting
Start out with Python; use Python for your own hackish projects - it's great for Web Apps and rapid prototyping.
Learn Java later on and you'll enjoy it; learn it before Python and you won't appreciate the kind of OOP Java has to offer as much.
This is from personal experience; again, like twodayslate mentioned, there is no "right" answer. I learnt both Python and Java on my own and use mainly Python for personal projects.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a student going to university to learn computer science this Fall, and I want to get ahead on Java programming. What are the most helpful and easy to understand programming tutorials on the web? I've been to a few sites, but they all skip the explanation on certain key concepts (like what a package or imports are!)
Any help would be greatly appreciated :)
Thanks
I would recommend the oracle tutorials found here.
They pretty much walk you through from the very basics.
They don't really teach you how to program, but do teach you what the language can do.
On there the "Learning the Java Language" is a good place to start. It gives more of an overview of programming in general and covers most of the basics, before getting into java.
Personally I find you generally get what you pay for, and the free online tutorials (with the exception of the oracle tutorials) are generally not terribly good. I would invest in a good book (or a few) as they tend to be better organized.
I would recommend my blog:
http://howtoprogramwithjava.com
It's a new site I just put up to help teach the fundamental concepts of Java, and I feel like it's fairly simple to use. I've had great feedback so far and was featured on lifehacker:
http://lifehacker.com/5933073/learn-to-code
Hope that helps and best of luck at school! :)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I was reading this article on Java Threads: http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html, which I think is must read for any Java developer. What are the other must read articles about Java Threads or threads in general?
I found the book Java Concurrency in Practice a good resource. It teaches you everything you need to know about threads and concurrency in Java. I highly recommend it.
http://linux.die.net/man/7/pthreads + do implement something
You may find article Java Thread Gate Pattern useful.
For Java Threading,
Java Concurreny in Practice.
Taming Java Threads
I find articles in IBM developer works very well written. Try search 'thread' in that site:
http://www.ibm.com/developerworks/views/java/libraryview.jsp?sort_by=&show_abstract=true&show_all=&search_flag=&contentarea_by=Java+technology&search_by=thread&topic_by=-1&industry_by=-1&type_by=All+Types&ibm-search=Search
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
HI
I am a B.E(CS) fresher.I am searching for a job in IT.There are openings for few C++
developers than java developers.Once i get 1-2 years of experience as C++ developer,can
i switch to a java application developer(for survival).
If your smart you can switch to anything. Really.
Specifically regarding programming languages, a language is like a tool used for a particular problem. See yourself as a carpenter rather than a 'hammer operator' or 'saw operator'.
See similar questions:
Learning multiple languages
Sure you can. Just don't underestimate the effort to learn the language well - you will be benefitted by the syntax looking familiar, and flabbergasted at the size of the runtime library.
If you go for this, write a lot of code.
Possible, but the environments/frameworks for each mean they are more different than the cosmetic syntax similarities might suggest. Don't assume they're basically interchangeable.
From an employers point of you I'd say previous 1-2 years experience will not count for much if anything. Friends of mine who have tried this in the past have had to drop a lot in salary and almost start in junior positions again. With only 1-2 years of experience that might not make a big difference in your case.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
First I want to say is that I am 37 years old and not from programmer background (actually from biology). And my question is should I start learning java? I have coded in php and javascript for a year and a half. Every answer would be appreciated
Thanks in advance
Bobi.
Yes.
( what else can I say? )
It really depends on what your motivation for learning it is. Do you want a language that gets you a job easily, a language that gets you an interesting job, a language to hack in for fun, etc.?
If you enjoyed coding in php and javascript, then you probably have discovered the "programmer mindset" and I would say go for it. You're never to old to learn interesting new things!
If, on the other hand, you hated the coding you have done already then learning a different language probably won't help.
Learn whatever language they're teaching at your local community college (by attending programming classes that is).
Depends what you want to do. If you are looking to develop on mobile applications (Android or BlackBerry) or if you want to write JSP or GRails web applications go for it! Age or background shouldn't stop you!