We can initialize in 4 ways:
1 When we declare the variable we can initialize it at that moment.
String name = "Yonas";
2. After the Declaration of the variable we can initialize the variable.
String name;
name = "Yonas"
3. Assing the value of another variable:
String name = "Yonas"
String Second = name
4. Assign variable from user input
Scanner input= new Scanner(System.in)
String abc =input.nextline()