+ 2
Does their exist a main method even if we dont create one and in which class.
20 Réponses
+ 4
The main method isn't implied. If you don't put it, your Java program won't execute. It is contained in your program's class.
+ 2
thankyou soo much. I understand this.
Actually I was asked in an interview that does there exist a main class if you don't make a main class on your own ?
+ 2
Thanks Fata1. Hope that's not your name 😂.
yeah Thanks for the help
+ 2
oh I'm sorry
+ 2
where are you from bdw?
+ 2
so, what is it ?
+ 2
hey I need help ?
+ 2
My name is Saif and I'm from India . Just over with my B.Tech.
Are you a working employee?
+ 2
I too have worked on Unity 3d as my final year project was a 3d game.
Great talking to you . Do tell me if you are on any of the social media sites.
+ 1
I think it's the object class. please explain if it isn't .
+ 1
The main method can be contained inside ANY class, as long as you have it inside of at least one of your classes. It's just an entry/exit point to your program. By default, a class is created for your program and usually under the same name as your program, and your main is placed in there. Again, that's just by default, so you're more than welcome to put it elsewhere if you want, but that's usually a good place for it. Hope that explains it a bit better for you.
+ 1
You're welcome, Saifur. I hope that helps you out with it. Best of luck in your learning! If you run into further problems or questions, don't hesitate to post back up.
+ 1
@Saifur Rahman
It is my name. :( My dad gave it to me because my mom died giving birth to me.
***I'm only joking and I apologize to anyone who actually had that happen to their parent during birth. Sorry for my lack of sensitivity.
+ 1
lol Don't apologize; I was only joking. It's been my coder/gamer alias since the late 90s, but isn't my birth name. I have a normal Polish name. :D
+ 1
Sorry, just seeing your messages. I'm on the web version, so I don't get notifications when someone replies.
I'm from the Atlanta, GA USA area. How about yourself?
Also, what you need help with?
+ 1
@Saifur Rahman
It's a pleasure to meet and speak with you, Saif. Congrats on the completion of your B. Tech!
I'm actually sitting at work right now. lol Currently, I do a lot of business intelligence, automation, and software development for a telecommunications company where I live. However, I'm currently in the process of fully transitioning into the game development field, heavily focused on virtual/augmented reality and artificial intelligence, with a side focus on 3D modeling and animation.
+ 1
oh great.
+ 1
need help . Do message me at saifur3126rahman at Instagram
+ 1
Thankyou for the help man. Do tell me when you are done with your work.
+ 1
need to ask something related to job.