The following program is wrong. Reorder the lines so that the program displays morning followed by afternoon .

Java Programming Language >   Managing Errors and Exception >   Java Features  

Short Question

19974


Answer:

1 public static void main(String[] args) {
2 }
3 public class Welcome {
4 System.out.println("afternoon");
5 System.out.println("morning");
6 } 
public class Welcome {
  public static void main(String[] args) {
    System.out.println("morning");
    System.out.println("afternoon");
  }
}


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.