सीधे मुख्य सामग्री पर जाएं

#37 What is Method in Java | How to create Method in Java ? Java में Method कैसे बनाते है ?

package com.sudhirtheindian2.java123;

public class methods {
public static void main(String[] args) {
// What is method in java and how to create it

// method is a group or block of code
// which take input from the user
// ,processed it
// and gives output

// notes --
// 1 method run only when it will called
// 2 reusability of code

// type of method

// predefined--

// print();
// sort();
// nextInt();
// nextFloat();
// sleep();
// concat();

// user defined

// add();
// sum();
}


}

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट