0

What are Functions in Java ...?

Functions

3rd Nov 2020, 1:02 PM
Anil Kumar
Anil Kumar - avatar
5 Respuestas
+ 4
They are blocks of code that can be called repeatedly. They can have parameters and return something. Read it in more detail in the course
3rd Nov 2020, 1:23 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 3
Martin Taylor quite nitpicky but correct 🙄😉 SE8 introduced java.util.function however, but i don't think he meant that
3rd Nov 2020, 1:53 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 2
Method and a function are the same, with different terms. A method is a procedure or function in object-oriented programming. A function is a group of reusable code which can be called anywhere in your program. This eliminates the need for writing the same code again and again.
3rd Nov 2020, 2:06 PM
Donato Paul Thayalan
Donato Paul Thayalan - avatar