✔ JAVA CHAPTERS:-
1. Introduction to Java
2. Features of Java
3. Java Virtual Machine
4. D/F B/W JVM, JRE, JDK
5. Java Data Types
6. Java Programs
7. Setting Java Path
8. OOPs Concepts
9. Object & Class In Java
10. OOPs Continued
11. Encapsulation & Polymorphism
12. Method Overloading
13. Method Overriding
14. Dynamic Method Dispatch
15. Association In Java
16. Inheritance in Java
17. Aggregation in java
18. Command Line Argument
19. Execute Command Line
20. Read Input From Command Line
21. Abstract Class In Java
22. Interface in Java
23. Cutom Marker Interface
24. Constructor In Java
25. Package in Java
26. Acess Modifier In Java
27. Static Import In Java
28. Package Class In Java
29. This Keyword
30. Instance Intializer Block
31. Super Keyword
32. Static Keyword
33. Final Keyword
1. Introduction to Java
2. Features of Java
3. Java Virtual Machine
4. D/F B/W JVM, JRE, JDK
5. Java Data Types
6. Java Programs
7. Setting Java Path
8. OOPs Concepts
9. Object & Class In Java
10. OOPs Continued
11. Encapsulation & Polymorphism
12. Method Overloading
13. Method Overriding
14. Dynamic Method Dispatch
15. Association In Java
16. Inheritance in Java
17. Aggregation in java
18. Command Line Argument
19. Execute Command Line
20. Read Input From Command Line
21. Abstract Class In Java
22. Interface in Java
23. Cutom Marker Interface
24. Constructor In Java
25. Package in Java
26. Acess Modifier In Java
27. Static Import In Java
28. Package Class In Java
29. This Keyword
30. Instance Intializer Block
31. Super Keyword
32. Static Keyword
33. Final Keyword
D/f B/w JVM, JRE, JDK: Previous Next: Java Programs
Some important definitions for Java programs
1. Operand :
Arguments on which operation is performed are known as operand.
2. Operator:
Operator is a special symbol used for performing a specific task. e.g. A+B. Here + symbol represents the operator.
3. Expression:
A sequence of operands connected by operators is known as expression. e.g. A+B*5.
Variable and datatypes in java
Variable:
Variable is the name of reserved memory location. It means when we declare a variable some part of memory is reserved.
e.g. int var1 = 35;
var1 is a variable here.
Variable Types:
Local variable:
A variable that is declared within the method, constructor, or block is known as local variable.
No Access modifier is used for local variables. Scope of local variable is limited to that method, constructor, or block only in which it declared.
Instance variable:
A variable that is declared within the class but outside of method, constructor, or block is known as instance variable (Non static). They are associated with object. Access modifiers can be used with instance variables. Inside class you can access instance variable direct by variable name without any object reference.
Static variable:
A variable that is declared within the class with static keyword but outside of method, constructor, or block is known as Static/class variable. They are associated with class. Static variable are accessed by ClassName.VariableName.
Data types:
As we discussed when a variable is declared some part of memory is reserved. But how much memory will be reserved. It depends upon the data type of the variable. i.e. how much memory will be reserved and which type of data can be stored in reserved memory is depends upon data type of the variable.
Data types in java:
1. Primitive data types:
Primitive data types are predefined in the language.
2. Referenced or object data types:
Any class object or array type. Default value of object data types is null.