Methods in Java | Types of methods in Java | static and non static method in Java | void in Java

Опубликовано: 05 Август 2026
на канале: Simply Automate With Siddharth
64
3

Welcome to our video on the fascinating story of Methods and their types in Java!

Imagine a cricket match where numerous players were giving their all to play for their team. Each player had a specific role to fulfill, such as batsmen scoring runs and bowlers taking wickets.

Enter the captain, who devised a brilliant strategy to determine the roles and responsibilities of the players. The batsmen were assigned the task of scoring runs, while the bowlers were entrusted with taking wickets.

In this way, the captain employed a method to organize the team and assign their respective roles and responsibilities.

To assign these roles and responsibilities, the captain used different types of methods:

Parameterized Method in Java: The captain instructed the bowlers on the specific strategy to employ against each player. Here, the captain utilized parameters like the bowler's name and the opposition player's name.

Non Parameterized Method in Java: The captain guided the batsmen on the target they should aim for. In this case, the captain used a predefined target that applied to all the batsmen.

Return Type Method and void method in Java: The captain adapted the game plan based on the team's performance and motivated the players. Here, the captain provided valuable returns, such as a positive attitude and high morale.

Static Method in Java: Umpires play a crucial role in making decisions, signaling players as out or not out. Here the umpire does not change during the course of the game.

Non Static Method in Java: The method which is not the same for all the objects in Java.

In this engaging video, we will explore the syntax, initialization, and practical usage of Methods in Java.
We'll dive into concepts such as how to define methods and what is static, non static, parameterized, non parameterized, return type, and void methods in Java.

Outline:
Introduction to Methods in Java with a Story - (0:00)
Methods in Java (01:00)
Syntax of Methods in Java (01:19)
non parameterized method in Java (01:38)
parameterized method in Java (02:03)
return type method and void method in Java (02:31)
static and non static method in Java (03:09)
Demo (03:38)
Conclusion(15:37)
Conclusion(18:56)

🎥 Don't forget to watch the full video to master Methods in Java and level up your programming expertise! 🚀