QR Code for this Page
Huda Tutorials

Huda Tutorials

The Right Path for Programmers

Huda Tutorials is free online Java tutorial site with java programs for Java development. This site is for starters as well as advanced developers to learn java who do not require any prerequisite Java Programming knowledge. All the Java Tutorial for beginners and advanced developers with examples available in pdf and doc format files. Java as the main programming language to develop various applications or projects world wide. It has found its use in various sectors including banking, insurance, retail, media, education, manufacturing and so on. E-commerce, Gaming, Mobile, Embedded, Media and many more types of applications are being developed using Java. Lets start your journey to learn Java.

How to start learning Java ?

If you want to learn Java, you must learn Java basics first. Read as many books about Java as possible. There are many good books in the market that will help you in learning Java. Online Java tutorials websites also available to learn Java programming language.

Java Tutorial

What is a Language ?

A Language is a communication media between two persons or two things.

What is Java Language ?

Java language is a programming language and computing platform first released by Sun Microsystems in 1995. Java was originally developed by a Canadian James Gosling at Sun Microsystems (which has since been acquired by Oracle). Java is the underlying technology that powers state-of-the-art programs including utilities, games, and business applications. Java runs on more than 850 million personal computers worldwide, and on billions of devices worldwide, including mobile and TV devices.

Why do I need Java ?

There are lots of applications and web sites that won't work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!

Java is a general purpose computer programming language that is concurrent, class based, object oriented. It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to "bytecode" that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture.

Is Java free to download ?

Yes, Java is free to download. Get the latest version at oracle.com. If you are building an embedded or consumer device and would like to include Java, please contact Oracle for more information on including Java in your device.

Why should I upgrade to the latest Java version?

The latest Java version contains important enhancements to improve performance, stability and security of the Java applications that run on your machine. Installing this free update will ensure that your Java applications continue to run safely and efficiently. You can learn more about Java Programming Language from Wikipedia.

History of Java Language

The java language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from Java coffee. Gosling designed Java with a C/C++ style syntax that system and application programmers would find familiar. Sun Microsystems released the first public implementation as Java 1.0 in 1996. It promised "Write Once, Run Anywhere" (WORA). Oracle Corporation's acquisition of Sun Micro-systems in 2009-10, Oracle has described itself as the steward of Java technology.

What are the Java Language Principles ?

  1. Java must be simple, object oriented, and familiar.
  2. Java must be robust and secure.
  3. Java must be architecture neutral and portable.
  4. Java must execute with high performance.
  5. Java must be interpreted, threaded, and dynamic.

Java Versions

  • JDK 1.0 (released in 1996)
  • JDK 1.1 (released in 1997)
  • J2SE 1.2 (released in 1998)
  • J2SE 1.3 (released in 2000)
  • J2SE 1.4 (released in 2002)
  • J2SE 5.0 (released in 2004)
  • Java SE 6 (released in 2006)
  • Java SE 7 (released in 2011)
  • Java SE 8 (released in 2014)
  • Java SE 9 (released in 2017)
  • Java SE 10 (March, 2018)
  • Java SE 11 (September, 2018)
  • Java SE 12 (March 19, 2019)

How Java Execute it's code ?

Java JVM and Java Bytecode

Java is portable, which means that programs written for the Java platform must run similarly on any combination of hardware and operating system with adequate run time support. This is achieved by compiling the Java language code in to an intermediate representation called Java bytecode. Java bytecode instructions are analogous to machine code, but they are intended to be executed by a Java Virtual Machine (JVM). End users commonly use a Java Runtime Environment (JRE) installed on their own machine for standalone Java applications. Just-in-time (JIT) compilers that compile byte code to machine code during runtime. Java itself is platform independent and is adapted to the particular platform it is to run on by a Java virtual machine for it, which translates the Java bytecode into the platform's machine language.

Is Java a Compiled or an Interpreted programming language ?

Java implementations typically use a two-step compilation process. Java source code is compiled down to bytecode by the Java compiler. The bytecode is executed by a Java Virtual Machine (JVM). Modern JVMs use a technique called Just-in-Time (JIT) compilation to compile the bytecode to native instructions understood by hardware CPU on the fly at runtime.

About Java Latest Release

The latest version is Java SE 12, released in March 2019. Since Java 9 is no longer supported, Oracle advises its users to "immediately transition" to Java 12. Oracle released the last public update for the legacy Java 8 LTS, which is free for commercial use, in January 2019. Java 8 will be supported with public updates for personal use up to at least December 2020. Oracle and others "highly recommend that you uninstall older versions of Java" because of serious risks due to unresolved security issues. Oracle extended support for Java 6 ended in December 2018.