Core Java 061306
Core Java 061306
❖ Java:
1991
Sun Microsystem
1995
❖ What is Java?
JAVA C
Java is object-oriented language, C is dependent on program.
which means it is dependent on
object.
JAVA C
Java does not support operator C++ Support operator overloading
overloading.
1) Simple and small: Java is a simple and small language; it does not support
many features of ’C’ and ‘C++’. Example: Java is a simple and small
language at it does not support the use of pointer as well as statement
and operator overloading.
2) Platform Independent: Java can run in any kind of OS, it only requires its
software to run, it doesn’t need a particular software or OS.
7) Object-Oriented: Java’s programs code and data object and class are
distributed in distinct section. Java program depends on class and object,
that’s why it is called object-oriented.
8) Rebuts and secure: The security level of many programs in higher in java
that in C++, because Java’s programs are difficult to run without JDK as
well as to run java’s programs, use have to set the path for it.
Java environment does use various development tools, class and method.
Development tools are the part of JDK. However, class and method are
part of JSL (Java Standard Library) and API (Application Programming
Interface.)
❖ Explain JDK?
JDK is used to develop tools of java. Various tools of JDK are used to
identify and run the programs of java. The tools are listed below:
JVM is inside the computer memory, while it is not necessary for any
machine to have a virtual code.
❖ Full Forms:
iii. void main(): main method which can not be required so it is taken
with void data type.
iv. String args []: String args[] means arguments which are given in the
program. These are given as command line argument only in one
line (statement).
❖ Data type: data type declares/ defines the type of value and specify the
size.
i. Numeric
ii. Non-numeric
→Numeric:
→ Integer
→Floating point
Character Boolean
Integer
➔ We identify long number by symbol ‘L’ and ‘l’. e.g.; 123L or 123l.