We know that when execution of java starts, 1 st public static void main(String args[]) methodis execute. so i have ask you that ,when main method is executed, it s static method. so at the time of execution of main method, object is not their. after that code under main method is run which contain object of classes.so Q. when main method is executed,at that time object is not in memory so at that time can i say that JAVA IS NOT OBJECT-ORIENTED???

ACCORDING TO ME yes,after main methode,code run which will create object after main method, java is OBJECT ORIENTED.




Showing Answers 1 - 7 of 7 Answers

javaexe

  • Nov 3rd, 2006
 

Java is Object Oriented. To run the Main method you give the name of the Object in which the function exists. To run static functions you DO NOT need to have an instance of the object created and can call directly with the Object type.

  Was this answer useful?  Yes

byteTech

  • Jan 9th, 2007
 

main() method is the place from where the the JVM starts executing the code within a particular class, there has got to be some point and in this case its the main() method. It does not make Java one wee bit obj oriented

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions