Академический Документы
Профессиональный Документы
Культура Документы
Session 2
Objectives
Interpret the Java program Understand the basics of the Java language Identify data types
Classes in Java
Sample class
Nested Classes
Types:
Static Non-static
Data Types
Array
Class
Interface
Type Casting
Variables
Syntax
datatype identifier [=value][, identifier[=value]...];
Array Declarations
Methods in Classes
Method Modifiers
static abstract
final
native synchronized volatile
Java Language Fundamentals / 20 of 28
Methods Overloading
Overloaded Methods:
Are in the same class Have the same name Have different parameter lists
Methods Overriding
Overridden Methods:
Are in the superclass as well as the subclass Are redefined in the subclass
Class Constructors
Special method used to initialize member variables of the class Same name as the Class name and does not have a return type Called when an object is created Types:
Operators
Java Provides following categories of Operators: Arithmetic Operators Bitwise Operators Relational Operators Logical Operators Conditional Operators Assignment Operators
Operator Precedence
Escape Sequence
Control Flow
Decision making
Loops
Unit Nexus Zirakpur Official Website Like Unit Nexus Pvt. Ltd. On Facebook Add Unit Nexus to your professional Network on Linked In Company Profile of Unit Nexus