Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page

Why Learn Java?

► Unlike languages such as C or C++, java comes with everything you need to build gui programs right out-of-the-box.

Here's an example program that shows a rotating, 5-sided polygon. Observe that only about 80 lines of code are required to create this application. Here's the source and a screenshot of the running application (file: test.java):

Source Code

► Java has been around for more than 20 years and as a consequence there are many, many libraries, tools and packages already written to address common needs.

► Java is popular. As of July, 2021, the TIOBE Index of programming popularity was:

  1. C
  2. Java
  3. Python
  4. C++
  5. C#

► Java is compiled down to bytecode class files and runs on the Java Virtual Machine. There are a number of other languages that also operate on the JVM and interacting with them from java is easy and straightforward.




Back to Examples Index

© John F. Dumas | johnfdumas@gmail.com | main page | top of page