What is java
Java is a Object Oriented Programming Language. Java programming language is widely used in many areas like web development and gaming applications. Java is a simple, easy to use, platform independent programming language which is used for many purposes.
The features of Java Programming language are:
- Abstraction : is a process of hiding information and showing the essential information.
- Encapsulation: storing data members and methods in a single unit called class
- Inheritance: Inheritance simply refer to code reusability. Where a class inherits properties from the class or interface.
- Platform independent programming language
- Multithreaded: Java programming language is a multithreaded programming language.
Java comes in various editions to cater to various types of application development needs.
Two key editions of Java are:
- Java Standard Edition
- Java Enterprise Edition
To learn Java programming fundamentals, we need Java SE.
Java SE (Standard Edition)
This edition consists of libraries for building core Java applications.
Java EE (Enterprise Edition)
This edition consists of libraries for building distributed Java applications. These libraries depend on Java SE libraries
Java is a high-level, general-purpose programming language developed by a small team, headed by James Gosling and Patrick Naughton at Sun Microsystems in 1991. It is currently owned by Oracle Corporation.
It was designed to be small, simple, and portable across platforms and operating systems.
It was initially developed for consumer devices. Later it has become a popular platform to develop enterprise applications.
You must have observed, a program has several components and blocks. It has words as well. Some of these words are reserved and have a special meaning in Java, e.g., class, public, void, for, int, static. These words are known as keywords. Currently, Java has 50 keywords.
keywords are the words which we cannot use to name our variable or method and they are reserved in any programming language. There are 50 keyword in java programming language and they are case sensitive.
Keywords in java:
Identifiers in Java:
User-defined words to identify different components of a program, e.g., Account, main known as Identifiers. These words are known as Identifiers. Identifiers are names used for identifying components of a program like classes, methods, interfaces, enums, and variables. After defining once, we can use them again to identify corresponding components in the program.
Rules for identifier:
- Case-sensitive
- Should not start with a number
- Can start with a letter, $ or _
- Should not have spaces
- Should not be a Java keyword or literal
- No restriction on the length
Comments
Post a Comment