Java Program Structure

tiwarikmanish 280 views 5 slides May 16, 2021
Slide 1
Slide 1 of 5
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5

About This Presentation

This presentation about java program structure


Slide Content

Java Program Structure Created by Manish Tiwari

Section Statement Structure Method Class

Documentation Section Package Statement Import Statement Interface Statement Class Definition Main Method Class

Array is a collection of similar type(Homogeneous) of elements stored in contiguous memory location. Documentation Section Code Optimization:  It makes the code optimized, we can retrieve or sort the data easily. Random access:  We can get any data located at any index position. Package Statement 1. Size Limit:  We can store only fixed size of elements in the array. It doesn't grow its size at runtime. To solve this problem, collection framework is used in java. Class Definition

Array is a collection of similar type(Homogeneous) of elements stored in contiguous memory location. Interface Statement Code Optimization:  It makes the code optimized, we can retrieve or sort the data easily. Random access:  We can get any data located at any index position. Class Statement 1. Size Limit:  We can store only fixed size of elements in the array. It doesn't grow its size at runtime. To solve this problem, collection framework is used in java. Import Statement 1. Size Limit:  We can store only fixed size of elements in the array. It doesn't grow its size at runtime. To solve this problem, collection framework is used in java. main() method class