Java Basics :
- Java is one of the most popular and widely used programming language.
- Java was originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component and later acquired by Oracle.
- Latest versions of Java are :
- Java SE 13(September 17, 2019)
- Java SE 12 (March 19 , 2019)
- Java SE 11 (September , 2018)
- Java SE 10 (March , 2018)
- Javadoc is a comprehensive documentation system created by Sun Microsystems.
- Java is used in all kind of applications like mobile, desktop, web, client server applications and many more.
- It is class based and object oriented language although not considered as pure object oriented as it contains primitive types.
- One design goal of Java is portability. Java is a platform independent language. It allows application developers to write once run anywhere (WORA) which means that java code can run on all platforms that support java.
- Java applications are typically first compiled to byte code (machine code) and then it runs on Java Virtual Machine (JVM). End users commonly use Java Runtime Environment(JRE) for java applets.
Objected Oriented Pragramming:
- Java supports OOPs(Object Oriented Programming) concepts:
- Data abstraction
- Data Encapsulation
- Syntax of java is largely influenced by C++. Java was built exclusively as object oriented language unlike C++ which combines syntax for structured, generic and object oriented language.
- decision statements – if , else if , switch statements
- repetitive structures – for, while , do while statements
- Java provides a built in error handling mechanism that is called Exception Handling. This includes try, catch and finally.
- Java Collection means single unit of objects. It is a framework that provides an architecture to store and manipulate the group of objects. Collection frameworks which are provided by Java:
- Linked list
- Priority queue
- Sorted Set
Threading and Garbage Collections:
- Java provides multithreading which is a process of executing multiple threads simultaneously where thread is smallest processing unit.
- Java uses an automatic garbage collector to manage memory in the object lifecycle. It does not support C/C++ style pointer arithmetic , this allows the garbage collector ensures type safety and security.
That’s all I have and thanks a lot for reading. Please let me know if any corrections/suggestions. Please do share and comments if you like the post. Thanks in advance… 😉
Thanks Sonali for helping us to grow day by day. She is expert in Java programming.