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.

Platform Independent:

  • 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:
    • Inheritance
    • Data abstraction
    • Data Encapsulation
    • Polymorphism
    • Overloading
  • 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.

Programming concepts:

  1. decision statements – if , else if , switch statements
  2. 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:

Collections:

1. List

  • Array
  • Linked list
  • Vector
    • Stack

2. Queue

  • Priority queue
  • Dequeue
    • ArrayQueue

3. Set

  • HashSet
  • LinkedHashSet
  • Sorted Set
    • TreeSet

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.


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert