-
-
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.
-
-
-
-
-
-
-
-
-
-
What is the difference between a while statement and a do statement
A while statement checks at the beginning of a loop to see whether the next loop iterationshould occur. Ado statement checks at the end of a loop to see whether the next iteration of a loop shouldoccur. The dostatement will always execute the body of a loop at least once.
-
-
-
-
-
-
-
-
Java Interview Questions
Ans