declare two of them using separate statements, and assign them some values immediately upon declaring them;
declare two variables on one line, and do not assign anything to them;
and declare two more variables on one line, and immediately upon declaration, assign them some values.
Requirements:
The Solution class should have two variables that are declared using separate statements and immediately initialized.
The Solution class should have two variables that are declared using a single statement and not initialized.
The Solution class should have two variables that are declared using a single statement and immediately initialized.
package en.javarush.task.jdk13.task02.task0223;
/*
Variety
*/
public class Solution {
public static void main(String[] args) {
int a = 5;
int b = 3;
int c, d;
int e = 4, f = 1;
}
}