I read individual topics of java many a times, like I read 2 books on java, but never tried on real life project, and also don't have any idea, how to get started .
Anyone please help me to get started on small small real life projects, so that I may get idea, how this language works when put together.
what do you mean by 'real life'? you could write a calculator, a checkers game, a phone book application...
The trick is to find something that sounds interesting TO YOU, and then write the code to do that. If someone says 'write code to control a factory robot' and that doesn't interest you, you are less likely to complete it (unless they are paying you).
Think of something that you think would be useful, and code that.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Start small, and accept that it's going to take a long time to develop the skills to build a serious app, and a long time to actually build it once you have those skils (or as you're developing those skills). (Read this to understand why.)
At the same time though, that doesn't mean that the first several years are wasted or produce nothing. If you set small, achievable milestones, ones that are just a bit beyond your current skill level, you'll enjoy the work more, feel less frustration than if you start out saying, "I'm going to write the next World of Warcraft," and you'll take satisfaction at achieving those incremental goals as you steadily increase your overall skill set.
So, taking Fred's example of a phone book app. You might proceed through something like this (and with smaller incremental goals along the way):
1. Using a simple CSV file, prompt user to either a) list numbers or b) add a number. (A) reads the file and displays the contents. (B) prompts for name and phone number, and appends to the existing file.
2. Add the ability to search, edit, and delete.
3. Put a Swing front end on it.
4. Put a web front end on it.
5. Make it available as an Android app.
6. Integrate it with Facebook.
... and so on.
Again, though, note that each of those goals has its own incremental sub-goals. For instance:
1.1. Learn how to read and parse a CSV file
1.2. Learn how to format console output into neat columns.
1.3. Learn how to handle user input.
1.4. Learn about dealing with arrays and collections.
Joined: Dec 30, 2010
Can you please tell me any website, which teaches everything visually , i.e. step by step process of how to develop these projects.
There are probably books that take that approach, but if you're looking for a guide that teaches you everything in simple steps, then that probably does not exist. But any introductory book should teach you everything you need to know to get going.