Introduction to Java:

  1. Java is a high-level, versatile, and widely used programming language that was developed by Sun Microsystems (now owned by Oracle Corporation) in the mid-1990s.
  2. Java is an object oriented programming language.


Applications

Java is most widely used in :

  • Android App Development.
  • Java has been used for game development, particularly in the creation of 2D games.
  • Building dynamic web applications using Servlets and JavaServer Pages (JSP).
  • Java Swing is a GUI (Graphical User Interface) library for building desktop applications.
  • Java can be used in embedded systems, such as smart appliances and industrial control systems.
  • Java is often used in cloud-based applications and services.


Features / Why to learn Java?

  • Platform Independence:Java is often referred to as a "write once, run anywhere" language because of its platform independence. It can run on any other platform (e.g., macOS or Linux) without modification.
  • Object-Oriented Programming (OOP): Java emphasizes the use of classes and objects to structure code.
  • Strongly Typed: Java is a strongly typed language, which means that variable types must be declared explicitly. This will help catch type-related errors at compile-time rather than runtime.
  • Large Standard Library: Java comes with a vast standard library (Java Standard Library or Java API) that provides pre-built classes and methods for common tasks.
  • Multi-Threading: Java has built-in support for multithreading, allowing developers to create applications that can perform multiple tasks concurrently.
  • Security: Java places a strong emphasis on security. The JVM includes features like bytecode verification and a security manager to protect against malicious code.


Syntax of Java:

The syntax of Java is designed to be relatively easy to read and write, making it accessible to both beginners and experienced programmers.

  • Case Sensitivity: Java is case-sensitive. For example, myVariable and myvariable are treated as different identifiers.
  • Semicolons: Statements in Java are terminated with semicolons (;).
  • Comments: Java supports both single-lined (//) and multi-lined (/* ... */) comments.
  • Data Types: There is a variety of data types in Java. Variables need to be declared with their data type before use.
  • Variables: Variables are used to store data. They must be declared with a data type and an optional initialization value.

There are many other things about the syntax of Java. We will study about the syntax of Java in next java.

You will learn all the basics of Java in this tutorial.
Don't worry, if you have never ever touched computer programming.