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

0

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

L3, Basics of Java Syntax, Missing Paranthesis, package q10802 In JAVA LPU GeeksCodes

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");
}
}

Tags

Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
✨ Updates