What defines function?
Answer / Joshil Murmu
In Core Java, a function is defined using the 'void' or 'return-type' keyword, followed by the function name, parameter list enclosed in parentheses, and a block of code between curly braces. For example:nnpublic int add(int x, int y) {n return x + y;n}nThis defines a function named 'add' that takes two integers as arguments and returns their sum.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between the continue and break statement?
Explain Stream Tokenizer?
Can there be an abstract method without an abstract class?
What is a class reference?
Is linked list a linear or non-linear data structure?
1 Answers Akamai Technologies,
Explain about object oriented programming and its features?
What is java lang string?
What does yield method of the thread class do?
different between exception and error? explaim check and uncheck exception
Is class forname reflection?
What is a parameter in simple terms?
What is a nullable field?