in java ,can you anyone tell me about void and main | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

in java ,can you anyone tell me about void and main

12th Feb 2023, 6:16 AM
Bhanu Prakash reddy
Bhanu Prakash reddy - avatar
3 Respostas
+ 2
Please avoid copying your question in post tags.Tags has its own purpose related to the forum's search facility https://code.sololearn.com/W3uiji9X28C1/?ref=app
12th Feb 2023, 6:35 AM
Ipang
+ 2
Bhanu Prakash reddy Java course is available in Sololearn please visit : https://www.sololearn.com/Course/Java/?ref=app Please ask question clearly with description use proper tags.
12th Feb 2023, 10:47 AM
RšŸ’ šŸ‡®šŸ‡³
RšŸ’ šŸ‡®šŸ‡³ - avatar
0
Hello there !! Void :The void keywordĀ specifies that a method should not have a return value Main :In any Java program, the main() method isĀ the starting point from where compiler starts program execution. So, the compiler needs to call the main() method. If the main() is allowed to be non-static, then while calling the main() method JVM has to instantiate its class.
13th Feb 2023, 12:24 AM
Mohamed Yassine TAYBI
Mohamed Yassine TAYBI - avatar