Answers:
These are just for ones own practice.
class Hello
{
public static void main(String args[ ])
{
system.out.println(" Java file name and class name should be same");
}
}
Class Hello
{
Public static void main(String arts[ ])
{
System.out.println("Java file name and class name should be same");
}
}
class Hello
{
public static void main(String args[ ])
{
system.out.println(" Java file name and class name should be same");
}
}
class Hello
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
class Hello
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
class Simple
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
class Simple
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
class Simple
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
Hello
{
Public static void main(String arts[ ])
{
System.out.println("Java file name and class name should be same");
}
}
04-05-21, 3:23 p.m. Deepika.B
Error because, it's String args[] not String arts.
29-09-24, 6:56 p.m. priyankaa_panda
add comment
{
public static void main(String args[])
{
System.out.println(" Java file name and class name should be same");
}
}
22-11-24, 6:17 p.m. janani016.bcombank24@nehrucolleges.com
add comment
Login to add comment