i want to know in which package or class is the java main method is in. Tell me the hyararchy, in which it is. And also i want to know whether the main method can be revoked in another method without the static modifier. plz reply me, for i am stuck here with this.
When you write a Java program, you write the main() method. The JVM launcher program (which is written in C, not in Java) finds your class and invokes main(). Does this answer your question?
i want to know in which package or class is the java main method is in
The main method is in whichever class you put it in.
And also i want to know whether the main method can be revoked in another method without the static modifier.
You can call static methods in a non-static way (i.e. by creating an instance and calling the method on that instance), if you want to. You shouldn't though (that is, assuming by 'revoked' you mean 'invoked').