Ticker

6/recent/ticker-posts

L3, Basics of Java Syntax, Missing Paranthesis, package q10802

In Java, a method call is followed by an open( and close) parenthesis.

The arguments that the method accepts are passed in between these parenthesis.

For example in the below code:

System.out.println("Good Morning");

The argument, which in the above example is the String literal "Good Morning", is passed into the method println.

Identify the error in the below code and correct it.

package q10802 :-

package q10802;
public class Test {
    public static void main(String[] args) {
        System.out.println("Hello");
    }
}


Post a Comment

0 Comments