What is the syntax of a Java function?
Single Choice
Views 5
Answer:
accessModifier returnType methodName(parameters) { // method body }
Example::
public int add(int a, int b) { return a + b; }
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Fundamentals: Building Strong Foundations, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.