Identify and fix the errors in the following code:

Java Programming Language >   Managing Errors and Exception >   JDK - Java Development Kit  

Short Question

3293


Answer:

1 public class Welcome {
2 public void Main(String[] args) {
3 System.out.println('Welcome to Java!);
4 }
5 }

Line 2. Main should be main. 
Line 2. static is missing.
Line 3: Welcome to Java! should be enclosed inside double quotation marks.
Line 5: The last ) should be }. 


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.