21JAVA

Published: 01 January 1970
on channel: 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


On this page of the site you can watch the video online 21JAVA with a duration of hours minute second in good quality, which was uploaded by the user JC Lecture Academy 01 January 1970, share the link with friends and acquaintances, this video has already been watched 206 times on youtube and it was liked by 9 viewers. Enjoy your viewing!