According to void main(), | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

According to void main(),

if we write void mains(),what will happen,. if error , which type of error will be?

25th Nov 2016, 3:43 PM
nitesh kumar
nitesh kumar - avatar
3 Answers
+ 1
Methods have their signature, which includes the name. You can't use another name to call the method without being his own.
25th Nov 2016, 3:51 PM
Felipe Cruz
Felipe Cruz - avatar
+ 1
Declaration error
25th Nov 2016, 3:57 PM
joffie
joffie - avatar
+ 1
there will be run time error
25th Nov 2016, 3:58 PM
nitesh kumar
nitesh kumar - avatar