Core Java: By: Gaurav Srivastav
Core Java: By: Gaurav Srivastav
Introduction
General
It
Java Environment
JAVAC
Bytecode is read JVM and Java Interpreter executes the java code.
javac Abc.java
Java Abc
Run:
Example
public class Hello
{
public static void main(String args[])
{
System.out.println(Hello);
}
}
Java Features
Simple
Object-Oriented:
Distributed
Robust
Secure
Portable
High Performance
Dynamic
To Do
Explanation of OOPS.
Features of OOPS and their description.
Variables
These are memory locations on which data stores on the run time.
It holds the temporary data.
These are defined with a data type.
There are three types of variables:
Local Variable
Instance Variable
Class/Static Variables.
example
class myClass
{
Public int number1;
Public static int number2;
Void myfunction()
{
Int number3;
}
}