• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
+ 2

Can I invoke main method using object created within that main method?

If so what will be output or ifnot what will be output. I know that main is void so it won't return anything but still invoking will do any change.? In background.

javaclassesobjects
15th Oct 2017, 7:55 AM
Anil Patil
Anil Patil - avatar
3 Respostas
+ 6
https://stackoverflow.com/questions/2550310/can-a-main-method-of-class-be-invoked-in-another-class-in-java
15th Oct 2017, 8:12 AM
qwerty
qwerty - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes