/* */ Click to Join Live Class with Shankar sir Call 9798158723

function in Java ?

A function is a block of code that performs a specific task, with the help of function we can divide complex or large program into small components makes program easy to understand and we can find error. A large program can be divided into different parts called modules. Where each module does a specific task so each module is called a function.

Types of Method:-

  1. Predefined Method .
  2. User-defined Method .

Tip :Every coder struggles a bit when they’re first starting out, and you shouldn’t expect anything different from yourself. It’s simply part of the learning process. But if you stick to it, and you’ll learn these skills faster than you ever thought possible.