Download Java Programming/Print version - Computer Science & Engineering
Transcript
1 Introduction The beautiful thing about learning is nobody can take it away from you Learning a computer programming language is AKIN TO1 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 2 . 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. 1.1 Are you new to programming? Figure 1: 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 SYNTAX3 (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, settop boxes, and even digital television sets can all be programmed using the Java programming 1 2 3 H T T P :// E N . W I K T I O N A R Y . O R G / W I K I / A K I N H T T P :// E N . W I K T I O N A R Y . O R G / W I K I / S E C O N D %20 N A T U R E H T T P :// E N . W I K T I O N A R Y . O R G / W I K I / S Y N T A X 3