What is a function in Java?
Single Choice
Views 8
Answer:
A function in Java (called a method) is a block of code that performs a specific task and is executed when it is called.
void greet() { System.out.println("Hello"); }
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.