Respuesta :
In Java, variables must be declared before they are used. The correct declarations of string variable s are:
- String s; s = "fortran";
- String s = "fortran";
- String s = ("fortran");
There are several ways to declare and initialize a string variable in Java. Some of them are:
- String var_name; var_name = "string value"
- String var_name = "string value";
- String var_name = ("string value");
- String var_name = new String(); var_name = "value";
By comparing the above variable declaration formats, to the list of given options; the correct declarations of string variable s are:
A. String s; s = "fortran";
B. String s = "fortran";
E. String s = ("fortran");
Read more about variable declarations at:
https://brainly.com/question/12987017