About Java
Java character set
History of Java
Features of Java
Java uses Unicode character set.
65,536 characters are available in Java
For Example:
- A: 65 (ASCII for A)
- B: 66 (ASCII for B)
- A(devanagari): 400 (ASCII)
- Aa(devanagari): 401 (ASCII)
- Java is one of the programming language created for development of distributed applications
- Java software is developed at SunMicro Systems by James Arthur Gosling
- Java development was started in the year 1990 and completed in the middle of 1991
- Guardians of Java
- SunMicro System has handed over entire rights of Java to Oracle
-
Java software is available in the form of JDK (Java Development Kit)
-
In the real industry, Java software is present in 3 categories
- J2SE (Java to Standard Edition)
-
used for developing client side applications
-
- J2EE (Java to Enterprise Edition)
-
used for developing server side applications
-
- J2ME (Java to Micro Edition)
-
used for developing mobile applications
-
- J2SE (Java to Standard Edition)
- Java is simple language and the basic reason behind this is that Java has removed the concept of pointers
- Pointers lead to confuse program
- Pointer may crash program easily
- Pointers may break security
Java is object oriented which supports features of object oriented language:
- Features of OOPS
- class
- object
- encapsulation
- abstraction
- inheritance
- polymorphism
- Robust means strong; Java programs do not crash easily
- There are two reasons behind it:
- Java has powerful concept called Exception handling (run time problems)
- Java has in-built memory feature
- Most of the C/C++ programs crash in the middle because they are not able to allocate sufficient memory or forget to free the allocated memory.
- Such problems are not present in Java because here user need not to allocate/reallocate the memory. Every care would be taken by JVM(Java Virtual Machine)
- Java is Architecture Neutral Language because the size of data type is same across the platform
- Portable applications are those which can run on each and every Operating System; and each and every processor without considering their vendor.
- Java is a Platform Independent Language
.javais converted to.classfile after being compiled.- This
.classfile is then converted to native code of OS - Note: JVM is Platform Dependent
- Thread is a light-weight process.
- The basic aim of multi-threading is to achieve concurrent execution
- The flow of control in Java is known as Thread
- The purpose of thread is to execute the program
- Java program has pre-defined API for security