what is given output?

what is given output?

public class { public static void main(string argv[]) }.........?

View Answers

December 3, 2010 at 11:32 AM

Hi Friend,

It will give error as you haven't specify the class name through which the class is to be saved and compiled. Moreover there is a missing braces.

Anyways, the correct format is:

public class Hello{
    public static void main(String argv[]){
        System.out.println("Hello World");
    }
}

Thanks









Related Tutorials/Questions & Answers:
what is given output?
outputs - Java Beginners
Advertisements
Java program that inputs a document and then outputs a bar-chart pit
counting identifiers,no.of inputs and outputs - Java Magazine
coding for given question
java outputs - Java Beginners
java code for given query
remove given error
Day for the given Date in Java
Writes the given character into buffer at the given index.
Writes the given double value into a buffer at the given index.
program on factorial of a given number in java
program on factorial of a given number in java
ModuleNotFoundError: No module named 'Fucks_given'
Adding .txt files in a given directory
Compare String with given String arraylists.
find the given input is integer or string
Help me on the given problem of String
how to find the given date is sunday
Java: Some problems in given condition
What is CVS
what is bit
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
What is procedure
what is hibernate.archive.autodetection
What is Hibernate
What is Hibernate
What is Hibernate
What is JDBC?
What is FBT
What is ActionServlet?
What is Trigger?
What is VLR ?
What's PHP ?
What is an interface?
What is DML?
What is Index?
What is SQLLoader?
What is a "constraint"?
what is Savepoint ?
What is this keyword?
what is collections?
what are indices?
What is Hibernate
What is a package?
What is Externalizable?

Ads