21JAVA

Publié le: 01 janvier 1970
sur la chaîne: JC Lecture Academy
206
9

‪@JCLecture‬ 1. No return type and no arguments/parameters. –
public static void methodName() {
// Method body
}
2. No return type but arguments/parameters.

public static void methodName(dataType parameter1, dataType parameter2, ...) {
// Method body
}
3. Return type but no argument/parameters.
public static dataType methodName() {
// Method body
return value;
}

4. Return type with argument/parameters
public static dataType methodName(dataType parameter1, dataType parameter2, ...) {
// Method body
return value;
}
#javaprogramming #javatutorial #javainstitute #javasparrow #javaclass #java #java_class_object
switch break | fall-through |how to use for loop in java | quiz switch case
interview questions on Java c in switch case break
CTS Capgemini campus interview questions| Infosys Wipro tech Mahendra interview questions| aspire gate questions on C and Java|
dxc TCS interview questions


Sur cette page du site, vous pouvez voir la vidéo en ligne 21JAVA durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur JC Lecture Academy 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 206 fois et il a aimé 9 téléspectateurs. Bon visionnage!