Module1.2_Introduction_Java
Module1.2_Introduction_Java
Amar Jukuntla,
Assistant Professor, ACSE,
VFSTR University
Index
• Introduction
• Data Types
• Variables
• Dynamic Initialization
• Scope and lifetime of variables
• Operators and Control Statements
• Type conversion and casting
• Arrays
• References
• float Floating
Points
• double
• boolean True/False
JIT Compiler: Compiles bytecode into native code for improved performance.
Advantages of static:
•No need to create an instance of the class.
•Useful for utility or helper methods.
𝑐= 𝑎 2 + 𝑏 2
double d = 166.66;
//converting double data type into long data type
Narrow long l = (long)d;
//converting long data type into int data type
int i = (int)l;
Amar Jukuntla | Department of Advanced Computer Science and Engineering
Arrays