+ 1

What is the use of foo() in java?

Please give me answer with an example.

12th Aug 2020, 8:27 AM
Ebney Samrat
4 Antworten
+ 1
it is example of name of function or variable if you has not better name and it is not important, especially if you want fast explain some code construction https://en.m.wikipedia.org/wiki/Foobar
12th Aug 2020, 6:47 PM
zemiak
0
Its just a silly name convention for any function and is void of any inherrent meaning. this tradition should have stopped a long time ago.
12th Aug 2020, 10:37 AM
Logomonic Learning
Logomonic Learning - avatar
0
It is just a user defined function. Not a predefined function. So it a function named foo by user.
12th Aug 2020, 11:50 AM
Jayakrishna 🇮🇳