Showing posts with label Language_Fundamentals. Show all posts
Showing posts with label Language_Fundamentals. Show all posts

Jul 22, 2022

Language_Fundamentals : Types_Of_Variables | UnInitialized_Arrays | Var_arg_ Methods | Main_Method | Command_Line_Arguments | Coding_Standards

Types of Variables

Division 1 : 

Based on the type of value represented by a variable all variables are divided into 2 types. They are:

  1. Primitive variables
  2. Reference variables

Language_Fundamentals : Identifier | Reserved_words | Data_Types | Literals

}
Identifier

A name in java program is called identifier. It may be class name, method name, variable name and label name. 

}
Class Test
{ |
1
public static void main(string args) {
| | |
2 3 4
int x = 10;
|
5
}

Jul 21, 2022

Language_Fundamentals : Arrays

}
Introduction

  • An array is an indexed collection of fixed number of homogeneous data elements.
  • The main advantage of arrays is we can represent multiple values with the same name so that readability of the code will be improved.
  • But the main disadvantage of arrays is:
  • Fixed in size that is once we created an array there is no chance of increasing or decreasing the size based on our requirement that is to use arrays concept compulsory we should know the size in advance which may not possible always.
  • We can resolve this problem by using collections.

You may also like

Kubernetes Microservices
Python AI/ML
Spring Framework Spring Boot
Core Java Java Coding Question
Maven AWS