+ 2

Does their exist a main method even if we dont create one and in which class.

6th Jun 2018, 2:26 PM
Saifur Rahman
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.
6th Jun 2018, 2:39 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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 ?
6th Jun 2018, 3:02 PM
Saifur Rahman
+ 2
Thanks Fata1. Hope that's not your name 😂. yeah Thanks for the help
6th Jun 2018, 3:06 PM
Saifur Rahman
+ 2
oh I'm sorry
6th Jun 2018, 4:51 PM
Saifur Rahman
+ 2
where are you from bdw?
6th Jun 2018, 4:55 PM
Saifur Rahman
+ 2
so, what is it ?
6th Jun 2018, 5:04 PM
Saifur Rahman
+ 2
hey I need help ?
6th Jun 2018, 6:01 PM
Saifur Rahman
+ 2
My name is Saif and I'm from India . Just over with my B.Tech. Are you a working employee?
6th Jun 2018, 6:58 PM
Saifur Rahman
+ 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.
6th Jun 2018, 7:48 PM
Saifur Rahman
+ 1
I think it's the object class. please explain if it isn't .
6th Jun 2018, 2:43 PM
Saifur Rahman
+ 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.
6th Jun 2018, 3:01 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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.
6th Jun 2018, 3:05 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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.
6th Jun 2018, 3:26 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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
6th Jun 2018, 4:56 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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?
6th Jun 2018, 6:41 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 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.
6th Jun 2018, 7:23 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
oh great.
6th Jun 2018, 7:47 PM
Saifur Rahman
+ 1
need help . Do message me at saifur3126rahman at Instagram
6th Jun 2018, 8:51 PM
Saifur Rahman
+ 1
Thankyou for the help man. Do tell me when you are done with your work.
6th Jun 2018, 9:17 PM
Saifur Rahman
+ 1
need to ask something related to job.
7th Jun 2018, 11:56 AM
Saifur Rahman