Easy to Learn Java: Programming Articles, Examples and Tips

Start with Java in a few days with Java Lessons or Lectures

Home

Code Examples

Java Tools

More Java Tools!

Java Forum

All Java Tips

Books

Submit News
Search the site here...
Search...
 
Search the JavaFAQ.nu
1000 Java Tips ebook

1000 Java Tips - Click here for the high resolution copy!1000 Java Tips - Click here for the high resolution copy!

Java Screensaver, take it here

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java programming articles and tips. Please take your copy here.

Take your copy of free "Java Technology Screensaver"!.

The Java Lesson 1: What is Java?

JavaFAQ Home » Java Lessons by Jon Huhtala Go to all tips in Java Lessons by Jon Huhtala


Bookmark and Share
All Java Lessons contents page | Java Lesson 1 | Java Lesson 2 | Java Lesson 3 | Java Lesson 4 | Java Lesson 5 | Java Lesson 6 | Java Lesson 7 | Java Lesson 8 | Java Lesson 9 | Java Lesson 10 | Java Lesson 11 | Java Lesson 12 | Java Lesson 13 | Java Lesson 14 | Java Lesson 15 | Java Lesson 16 | Java Lesson 17 | Java Lesson 18 | Java Lesson 19 | Java Lesson 20 | Java Lesson 21 | Java Lesson 22 | Java Lesson 23 | Java Lesson 24 | Java Lesson 25 | Java Lesson 26 | Java Lesson 27 | Java Lesson 28 | Java Lesson 29 | Java Lesson 30 | Java Lesson 31 | Java Lesson 32 | Java Lesson 33 | Java Lesson 34 | Java Lesson 35 | Java Lesson 36 | Java Lesson 37 | Java Lesson 38 | Java Lesson 39 | Java Lesson 40 | Java Lesson 41 | Java Lesson 42 | Java Lesson 43 | Java Lesson 44 | Java Lesson 45 | Java Lesson 46

The Java Lesson 1.

What is Java?

Hello dear friends!

With help of Jon Huhtala we start today 46 Java Free lessons course on our site. All the lessons are written by Jon. We just publish his lessons and say: Thank you very much! We lucked the info for beginners until today Smile

Java history

  • The fastest growing programming language in the history of computing

  • Developed by Sun Microsystems

  • Originally designed in 1991 for use in embedded consumer applications

  • Redesigned in early 1995 with Internet application capabilities

  • Introduced in May, 1995 and immediately supported by the Netscape Web browser

  • Rapidly overtaking C++ in popularity among commercial software developers

  • Threatened by Microsoft's .NET initiative and C# programming language. The future is uncertain as the legal battle between Microsoft and Sun Microsystems may last for years.

Benefits of Java

  • Architecturally neutral. Once written, the same Java program can be run on any platform (computer and operating system) that supports Java.

  • Entirely object-oriented. Existing code can be easily re-used and maintained.

  • Secure. Dangerous program actions are prohibited.

  • Supports Internet programming. Java applets are run by Web browsers.

  • Robust. Language features and packaged code support graphical programming, exception handling, networking, multi-threading, I/O, and more.

How Java works

  • To develop and distribute a Java program

    1. Programmer codes Java source statements

    2. Java compiler converts source statements into bytecode (platform-independent object language)

    3. Bytecode is copied to the target platform

  • To execute a Java program

    1. Platform-dependent Java Virtual Machine (JVM) software must be installed

    2. A copy of the JVM is started

    3. Each bytecode statement is interpreted (translated) by the JVM into platform-dependent machine language and executed under JVM control

Java source statements

->

Java compiler

->

bytecode

--->

Platform

Java Virtual Machine

Disadvantages of Java

  • Not supported by all platforms (though third-party JVM software is usually available)

  • Slower in execution than compiled languages

  • Restricts or prohibits machine-level operations required by certain applications (operating systems, etc.)

Benefits of Java far out-weigh its disadvantages

  • Applications require a single set of source files, a single compile, and can be run on any platform having a JVM

  • Development time and cost are greatly reduced

  • Maintenance time and cost are greatly reduced

The lesson continues here

Java programmers

  • Are in high demand. For current information, visit any of the following Web sites and use their advanced search facilities to find jobs with "Java" in the job description or requirements. You may find it interesting to compare the popularity of Java with other languages such as C++, COBOL, and VB.

www.dice.com

www.computerjobs.com

www.monster.com

  • Are well paid

"A 2001 survey found that U.S. Java developers earn an average of $83,000 per year, making them some of the highest-paid specialists in IT."

- ComputerWorld (May 20, 2002)

  • Benefit from certification

"There are hundreds of Java certification options. Recruiters say Sun's offerings carry the most weight, but any certification may help. Only about 25% of Java developers are certified."

- ComputerWorld (May 20, 2002)

What does it take to become a certified Java programmer?

  • A thorough knowledge of programming logic

  • A thorough knowledge of object-oriented programming fundamentals

  • Attention to detail

  • Java language specifics

  • Test-taking skills

  • Persistence and practice

Review questions

  1. Which of the following are true? (choose two)

  1. All Java programs are object-oriented.

  2. A Java program will execute faster than an equivalent program written in C++.

  3. The bytecode for a particular Java program will be the same for different platforms.

  4. Java can only be used to create Internet applications (applets).

  5. Java was developed by Microsoft.

  1. The Java compiler (choose two)

  1. reads bytecode

  2. writes bytecode

  3. is the same regardless of the target platform

  4. is also known as the Java Virtual Machine (JVM)

  5. translates Java source statements into the machine language of the target platform

  1. The Java Virtual Machine

  1. is a hardware device

  2. is the same on all platforms

  3. reads Java source statements

  4. is not required to execute a Java program

  5. none of the above

  1. Which of the following would be the least likely applications to be developed in Java? (choose two)

  1. A game for a hand-held, Personal Digital Assistant (PDA)

  2. A program to display a map for an on-board car computer

  3. A Windows program for updating a small disk file

  4. A banking application to record up to 500 transactions every second

  5. A program to reformat the hard drive of a personal computer

Copyright © 2004 by Jon Huhtala. All Rights Reserved. Published by http://JavaFAQ.nu
 Printer Friendly Page  Printer Friendly Page
 Send to a Friend  Send to a Friend

.. Bookmark and Share

Search here again if you need more info!

Custom Search



Home Code Examples Java Forum All Java Tips Books Submit News, Code... Search... Offshore Software Tech Doodling

RSS feed Java FAQ RSS feed Java FAQ News     

    RSS feed Java Forums RSS feed Java Forums

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 1999-2006 by Java FAQs Daily Tips.

Interactive software released under GNU GPL, Code Credits, Privacy Policy