Can we create object inside method?
Answers
Answered by
2
Answer:
No, the main method only runs once when you run your program. It will not be executed again. So, the object will be created only once. Think of your main method to be outside your class.
Answered by
1
Answer:
yes by usinng several methods we can prepare a object
Similar questions