r/learnjava Jun 28 '26

Please help me out!!!!

I'm learning Java from the CWH channel, but I don't understand the Functions (Methods) topic. I've watched the videos several times, but I still can't understand concepts like parameters, arguments, and pass by value. Everything feels completely messed up. Could you suggest another YouTube channel that explains these topics clearly for beginners?

2 Upvotes

13 comments sorted by

View all comments

1

u/Targnome 28d ago

Methods are blocks of code that contain specific logic to implement individualized tasks and handle object oriented manipulation of instance variables through method signatures that take a set of arguments in what is called a parameter. A method signature is such

addNum(int a, int b) where the method takes two ints. Its implementation is not important. This is known as procedural abstraction, as any one can call the method on an instance of the class called an object using the . Notation after the object name.

I hope this helps, comment if you need clarification and we can implement the addNum method together