Introduction To Java
These java course tutorials we have created for students with the simplest language possible from scratch. This Java programming for beginners course will help you learn basics of Java and advanced concepts
What is Java Meant?
Java is a high-level Programming language that was developed by Sun Microsystems in 1995. (which is now owned by the subsidiary of Oracle inc.) James Gosling is known as the father of Java.
The first name of the Java Language was Oak. after sometimes they changed it to JAVA
Java was primarily developed for set-top boxes and some handheld devices, But after it became a popular it been used to create web applications.
Java Programing is secure and robust, It has 7.6 Million users as per the Daxx report.
History Of Java
As we discussed earlier that java was primarily developed for set-top boxes and digital cable television. The Green team started working on java with project developer language for digital devices like set-top boxes and televisions. But java was suited for internet programming then later java technology was incorporated by Netspace.
The aim and principle for creating java programming were that the language should be "simple, Robust, Portable, Object-Oriented, Interpreted, and Dynamic"
Features of Java
1. Simple
Java is way easy to learn and simple understand its syntaxes, and clean to implement, Java language is a simple programming language because:
- It is based on C++ syntax so far (It is easier to learn after learning C++).
- It has already removed complicated and rarely-used functions like an explicit pointer, operator overloading (Remember Java has already removed Operator overloading that why it does not support Operator Overloading).
- It has Garbage Collector which automatically removes unreferenced objects.
- No explicit Pointer
- Java programs run inside a virtual machine sandbox that's why it is also called platform-independent
- It uses strong memory management.
- Lack of pointer which avoids security problems.
- Java has an automatic garbage collector which runs on a java virtual machine (JVM) to get rid of objects which are not being used by the Java Application anymore.
- And the exception handling and the type checking mechanism. All these points make java a Robust language
- C++ VS Java
C++ |
Java |
C++ is platform-dependent |
Java is platform-independent |
C++ is mainly used for system
programming |
Java is mainly used for application programming. It is widely used in window, web-based, enterprise and mobile applications |
C++ supports the goto statement. |
Java doesn't support the goto
statement. |
C++ supports multiple inheritance |
Java doesn't support multiple inheritance through class. It can be achieved by interfaces in java. |
C++ supports pointers. You can write pointer program in C++ |
Java supports pointer internally. However, you can't write the pointer program in java. It means java has restricted pointer support in java |
C++ uses compiler only. |
Java uses compiler and interpreter
both. |
C++ supports both call by value and
call by reference.
|
Java supports call by value only.
There is no call by reference in java. |
a class Demo { public static void main(String args[]) { System.out.println("Hello World"); } }
Java Syllabus
Introduction
Unit 1 |
Understanding Hello
word – learn basics |
Unit 2 |
JVM – Understand what
is JVM & Architecture |
Unit 3 |
Installation of JDK 8 –
Setting up Java Environment |
Unit 4 |
Variables and Data
types, operator, typecasting, Arrays, Decision-making
statements, |
Unit 5 |
OOPs Concept -
Learn OOPs basics with examples |
Unit 6 |
Classes and Object-
constructor and their types, String functions, vectors, command-line
arguments, Garbage collector in Java |
Unit 7 |
Inheritance and
packages - what is inheritance, need of inheritance, types of inheritance Method overloading,
Final keyword Packages - What
are packages?, How to create Packages in java? |
Unit 8 |
Exception Handling & Multithreading - types of error - exception, Try-catch statements throws exception, |
Unit 9 |
Basics of JDBC |