0

The difference between java and C++

I know that we always write int main or void main in c++ as a separate function. They don't do that in java? Why do they write main in the class and also with the word static?

2nd Jan 2025, 8:01 PM
ŠšŠ¾Š»Š¾Š± ŠœŠ°ŃŠ»Š¾
ŠšŠ¾Š»Š¾Š± ŠœŠ°ŃŠ»Š¾ - avatar
2 Answers
+ 2
ŠšŠ¾Š»Š¾Š± ŠœŠ°ŃŠ»Š¾ , this is not quite the right place to raise your question. > *q&a* section is meant for coding related questions, doubts and discussions about the topic. > anything else should be posted in the `feed` that is located in the community section.
2nd Jan 2025, 9:15 PM
Lothar
Lothar - avatar
+ 1
Interesting
2nd Jan 2025, 8:02 PM
ŠšŠ¾Š»Š¾Š± ŠœŠ°ŃŠ»Š¾
ŠšŠ¾Š»Š¾Š± ŠœŠ°ŃŠ»Š¾ - avatar