A class file is created without successful compilation.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aerukala_Rajani
Posted On:   Wednesday, July 18, 2001 05:24 AM

I wrote a code, the code is as follows.

private class test
{
public static void main(String s[])
{
System.out.println("hi");
}
}

When i compiled the above code, a compilation error has occured i,e.,
The type type test can't be private. Package memebers are always accessible within the current package.
private class test

But still the class file is created and when run the code, i got the result.How it is possible, how a class file can be created without successful compilation.Please send the reply as early as possible.

About | Sitemap | Contact