Java beginners

 

 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.

2. Pure Object-Oriented 


Java is an Object-Oriented programming language. Everything in java is an object. Object-Oriented means we can organize a combination of different types of objects that can incorporate both data and behavior


3. Platform Independent


Java code can be run on multiple platforms such as Windows, Linux, Mac/Os, etc. The java code is compiled by the compiler and converted into bytecode. This bytecode is a platform-independent code because it can run on multiple platforms. like write once and run anywhere you want on any platform.


4. Secured


Java is known for its security, Java delivers us a virus-free software product. Java is secure because of: 

  • No explicit Pointer 
  • Java programs run inside a virtual machine sandbox that's why it is also called platform-independent 

5. Robust


Robust means it is strong. Java is Robust because:
  • 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

6. Architectural-Neutral

Java is architectural neutral because there is no implementation-dependent features, such as size of primitive types is fixed


7. Portable

Java is portable because it facilitates you to carry the java bytecode to any platform, It doesn't require any implementation.

8. High-Performance

Java is faster than other traditional interpreted programming languages because java bytecode is "Close" to native code.

9.Distributed

Java is distributed because it facilitates users to create distributed applications in java. RMI and EJB are used for creating distributed applications

10. Multi-threaded

A thread is like a separate program, executing concurrently. we can write java programs that deal with many tasks by defining threads. The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shared a command memory area. Threads are important for multi-media, Web applications, etc

11. Dynamic

Java is a dynamic language. It supports the dynamic loading of classes. It means classes are loaded on demand. It also supports functions from its native languages, i.e., C and C++. Java supports dynamic compilation and automatic memory management (garbage collection).


  • 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.



First Java Program example

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










Post a Comment (0)