Introduction to Java
-> Programming language is a language through which we communicate with the system.
-> Java is a platform independent, object oriented, high level programming language.
->java is developed by SUN MICROSYSTEM company in the year 1995.
-> JAMES GOSLING is known as father of java.
->Java software name is JDK(Java Development Kit).
-> The latest version of the JDK is JDK 16.
-> The memory addressing state where the memory addressing in Java is implemented and controlled by the JVM (java virtual machine).
-> BUZZ Words of Java are
1. Simple.
2. Secure.
3. Portable.
4. Object oriented.
5. Robust.
6. Multithreading.
7. Architecture neutral.
8. Interpreted.
9. High performance.
10. Distributed.
11. Dynamic and extensive.
-> Portability and secured is important features of Java. portability is achieved due to its byte codes. i.e. the class file is generated by compiling the Java source file and run independently on one machine. i.e. called (Write Once Run Anywhere) I.e. compiling once and interpreted any where to that intermediate code (byte code).
-> Java is platform independent due to its byte code.
-> To increase the speed of input and output speed of execution JIT (Just in time compiler) is a solution to improve the performance I.e. byte codes are translated to native code (native code is a machine readable code).
-> Linux using AOT (A head time compiler) that transfer normal code to native code.
Different between java and C++
Java->
1. Java is a true object oriented programming language.
2. Java does not support operators overloading.
3. Java does not hava template class as in C++ .
4. Java does not support multiple Inheritance of class. This accomplish by a new feature called interface.
5. Java does not support global variables. Every variables and methods is deeply with a class and form part of the class.
6. Java does not use points.
7. There is no header file in Java. does not use goto and constant statement.
8. In Java memory management is done by JVM (java virtual machine) using garbage collector, automatically.
9. Java support 4 access specifiers.
(i) public.
(ii) private.
(iii) protected.
(iv) default.
10. Java use both compiler and interpreter.
C++ ->
1. C++ is c with object oriented extension.
2. C++ support operator overloading.
3. C++ have template class.
4. C++ support multiple Inheritance.
5. C++ support global variables.
6. C++ use points.
7. C++ use header file, also use goto and constant statement.
8. In C++ memory management is done by programmer.
9. C++ support 3 access specifiers.
(i) public.
(ii) private.
(iii) protected.
10. C++ is use only compiler.
Java
-> when we look at the type in Java then we found following are three types of flavors.
1. J2SE ( java to standard edition)
2. J2ME (java to mobile edition)
3. J2EE (java to enterprise edition)
1 Comments
Wow, wonderful blog. Thanks for sharing this informative article with us.
ReplyDeleteI arppreciate your thoughts. Looking forward for reading more...
Affordable Website Design Dubai
Post a Comment