Introduction

From Wikibooks, open books for an open world
Jump to: navigation, search

Java Programming
Introduction
About This Book
The beautiful thing about learning is nobody can take it away from you
B.B. King (5 October 1997)

Learning a computer programming language is akin to a toddler's first few steps towards an upright walk. You stumble and you fall but when you start walking, you take upon it as second nature. Learning to program is similar in many ways to learning to walk. However once you start programming, you never cease to evolve. Learn one programming language and you know them all.

This book is a concentrated effort in trying to get you to take your baby steps towards programming in the Java™ programming language. Although this book is primarily meant to act as a learning aid for beginners, it can equally be helpful as a reference manual and guide for the intermediate and experienced programmers. The book is laid out in such a manner that with each successive chapter, the complexity of programming constructs increase. Thus, programmers are constantly challenged to develop their skills with a progressive learning curve.

[edit] Are you new to programming?

This stunning image of the sunset on planet Mars wouldn't have been possible without Java.

If you have chosen Java as your first programming language, be assured that Java happens to also be the first choice for educational programs in many universities and colleges. Its simple and intuitive syntax (that's grammar for programming languages) helps beginners feel at ease with complex programming constructs in no time.

But be aware, Java is not just any basic programming language. In fact, NASA used Java as the driving force (quite literally) behind its Mars Rover missions. Computers, mobile phones, set-top boxes, and even digital television sets can all be programmed using the Java programming language. Robots, air traffic control systems and the self-checkout barcode scanners in your favourite supermarkets are all being programmed in Java.

[edit] Programming with Java™

By now, you might truly be able to grasp the power of the Java programming language – there is still lots more you can do with Java. Not every programmer gets to program applications that take unmanned vehicles onto other planets. Software that we encounter in our daily life is somewhat humble in that respect. Software programs and applications written in Java however cover vast area of the computing ecosphere. Here are just some examples of the ubiquitous nature of Java applications in real-life:

  • OpenOffice.org, a desktop office management suite that rivals the Microsoft Office suite has been written in Java.
  • The popular building game Minecraft is also written in Java.
  • Online browser-based games like Runescape, a 3D massively multi-player online role playing game (MMORPG), run on graphics routines, 3D rendering and networking capabilities powered by the Java programming language.
  • Two of the world's renowned digital video recorders, TiVo and BSkyB's Sky+ use built-in live television recording software to record, rewind and play your favourite television shows. These applications make extensive use of the Java programming language.

The above mentioned application illustrates the reach and ubiquity of Java applications. Here's another fact – almost 80% of mobile phone vendors adopt Java as their primary platform for the development of applications. The second most widely used mobile-based operating system, Android, uses Java as one of its key application platforms – developers are encouraged to develop application for Android in the Java programming language.

[edit] What can Java not do?

Well, to be honest, there is nothing that Java can not do. You can program just about anything in Java. This book would however get you acquainted with the basics of the language in order for you to create that masterpiece of a software you dream of creating one day.

People have written operating systems in Java, they have programmed robots in the language and managed power stations and conveyor belts in factories; thus, you can do anything and everything with Java. Your applications and code need not fear any bounds because with Java, possibilities are endless – all you need is creativity.


Java Programming
Introduction
About This Book
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export