Skip to main content

Java Basics

What is Java?

Java is a high-level, general-purpose, object-oriented, and secure programming language developed by James Gosling at Sun Microsystems, Inc. in 1991.

Features of Java

  • Simple: Java is a simple language because its syntax is simple, clean, and easy to understand. Complex and ambiguous concepts of C++ are either eliminated or re-implemented in Java. For example, pointer and operator overloading are not used in Java.
  • Object-Oriented: In Java, everything is in the form of the object. It means it has some data and behavior. A program must have at least one class and object.
  • Robust: Java makes an effort to check error at run time and compile time. It uses a strong memory management system called garbage collector. Exception handling and garbage collection features make it strong.
  • Secure: Java is a secure programming language because it has no explicit pointer and programs runs in the virtual machine. Java contains a security manager that defines the access of Java classes.
  • Platform-Independent: Java provides a guarantee that code writes once and run anywhere. This byte code is platform-independent and can be run on any machine.

Basics of Java

  • Portable: Java Byte code can be carried to any platform. No implementation-dependent features. Everything related to storage is predefined, for example, the size of primitive data types.
  • High Performance: Java is an interpreted language. Java enables high performance with the use of the Just-In-Time compiler.
  • Distributed: Java also has networking facilities. It is designed for the distributed environment of the internet because it supports TCP/IP protocol. It can run over the internet. EJB and RMI are used to create a distributed system.
  • Multi-threaded: Java also supports multi-threading. It means to handle more than one job a time.

Java "Hello, World!" Program



// Your First Program
class Tech Ocean{
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}


Output

Hello, World!




Comments

Popular posts from this blog

Unveiling the Growth Story: IDFC First Bank Share Price Analysis

Unveiling the Growth Story: IDFC First Bank Share Price Analysis In the dynamic world of finance, the stock market stands as a platform for investors to explore potential growth opportunities. One such intriguing player is IDFC First Bank, a prominent banking institution in India. In this blog, we delve into the journey of IDFC First Bank's share price, analyzing its historical performance, key factors influencing its value, and what the future might hold for investors. Understanding IDFC First Bank: IDFC First Bank, formerly known as IDFC Bank, is a financial institution that offers a wide range of banking services, including retail banking, wholesale banking, and treasury operations. With a customer-centric approach and a focus on digital innovation, the bank aims to provide seamless banking experiences to individuals and businesses alike. Historical Performance: To comprehend the trajectory of IDFC First Bank's share price, let's take a glance at its historical performa...

Chandrayaan-3 : Unstoppable Story

Chandrayaan-3, the successor to Chandrayaan-2, represents a significant leap in demonstrating comprehensive capabilities for safe lunar landing and surface exploration. The mission comprises a Lander module, a Rover module, and a Propulsion module. The launch will be facilitated by the LVM3 launch vehicle from the Satish Dhawan Space Centre (SDSC) in Sriharikota. The Propulsion module will carry the Lander and Rover configuration to a lunar orbit of 100 km. Notably, the Propulsion module incorporates the Spectro-polarimetry of Habitable Planet Earth (SHAPE) payload, designed to investigate spectral and polarimetric measurements of Earth from the lunar orbit. The Lander payloads on Chandrayaan-3 consist of various scientific instruments and experiments that aim to gather essential data on the lunar surface. These payloads include Chandra’s Surface Thermophysical Experiment (ChaSTE), which measures thermal conductivity and temperature, the Instrument for Lunar Seismic Activity (ILSA), wh...

Python: Empowering Simplicity and Versatility in Programming

Introduction: Python, a high-level programming language known for its simplicity and versatility, has captured the hearts of developers around the world. Created by Guido van Rossum in the late 1980s, Python has evolved into a powerful tool used in various domains, from web development to data science and machine learning. In this blog post, we will explore the features and advantages of Python that make it a favorite among programmers and why it continues to gain popularity. Clean and Readable Syntax: Python's design philosophy emphasizes code readability and simplicity. Its elegant syntax uses indentation and whitespace instead of braces, resulting in clean and visually appealing code. This simplicity not only enhances code readability but also reduces the chances of errors and makes Python a beginner-friendly language. Developers can express their ideas concisely and focus on problem-solving rather than getting lost in complex syntax. Versatility and Cross-Domain Applications:...