class HelloWorld
{
public static void main(String t[])
{
System.out.println("Hello World");
}
}
A. |
Program does not compile since the keyword class should start with capital C
|
B. | Hello World |
C. |
Program does not compile since the variable name of the arguments is t. The name should be either s or args
|
D. | HelloWorld |
A. | integer |
B. | float |
C. | char |
D. | double |
![]() |
{ Public static void Main(String args[]) { System.out.println("i love java"); } } |
![]() |
{ Public Static Void Main() { System.out.println("I Love Java"); } } |
![]() |
{ public static void main(String s[]) { System.out.println("I Love Java"); } } |
![]() |
class PrintJava |
![]() |
} |
![]() |
class PrintHelloWorld { |
![]() |
public static void main(String args[]) { |
![]() |
private static int main(String s[]) { |
![]() |
System.out.println("Hello World"); } |
A. | 1 only |
B. | 1 and 3 |
C. | 1 and 4 |
D. | 2 and 3 |
E. | 3 and 4 |