Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

what are the Methods,Variable and Output code of following program public class

ID: 3858424 • Letter: W

Question

what are the Methods,Variable and Output code of following program

public class Rhydham{
public static void main(String [] args){
    displayString2();
    displayString1();
}//end main
/**Method which displays whatever is stored in a local string variable to the screen*/
public static void displayString1(){
    String s1 = "eyes are Blue";
    System.out.println(s1);
}//end displayString1
   /**Method which displays whatever is stored in a local string variable to the screen*/
   public static void displayString2(){
    String s2 = "Roses are Red";
    System.out.println(s2);
   }//end displayString2
}//end class

Explanation / Answer

Methods :

There are 3 methods in this program :

Variables :

Output :

Roses are Red

eyes are Blue