Core Java Tutorial

 
 

What is Java?

 
 

Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere! .First version of java(JDK 1.0) released in 23rd Jan 1996 and originally developed by James Gosling at Sun Microsyatems.let's get strarted to know about what is java,where it is used, what type of applications use Java. Before going into java, keep an eye on what are the differences between C, C++ and java

C vs Java

  1. C is Procedural langauge(C breaks down into functions) where as java is Object-Oreinted language(Java break down into Objects).
  2. Java is a Interpreted language while c is a compiled language.
  3. Java is a high-level language while C is low-level language.
  4. Java uses bottom-up approach while C uses top-down approach.

    In C, formulating the code is done by defining the whole and then splitting into smaller. In Java smaller elements combine to-gether to form the whole.

  5. Java supports Method Overloading while C does't.
  6. Java provieds garbage collection, that means memory is managed automatically on the otherhand C don't provide garbage collection.
  7. C supports concept of pointers but Java don't
  8. Java supports concept of Multiple Inheritance but C don't Support

C++ vs Java

  1. C++ is platform dependent while Java is platform-independent.
  2. C++ supports operator overloading but Java don't support.
  3. C++ uses compiler only but Java uses both compiler and interpretor.
  4. C++ Supports booth call by value and call by reference but Java supports only call by value.
  5. C++ does't support for built in threads but Java doe's support.
  6. C++ does't support documentation comment(/**.....*/) but Java supports to create documentation for source code.
  7. C++ supports virtual keyword but Java has no virtual keyword.
  8. C++ does't support unsigned right shift(>>>) but Java do supports unsigned right shift that fills zero at the top for negative numbers

Java Features

1.Simple
2.Platform Independent
3.Robust
4.Interpreted
5.High level language
6.Secure
7.Object Oreinted
8.Dynamic
9.Distributed Environment
10.Portable
11.Architecture neutral