Hello guys,
I am totally new to
Java. I need someone to explain the concept below in a simpler way. I'd really appreciate it.
What is the purpose of this method?
Can you explain the flow of the int x=3; like where does the 3 go step by step? Thank you guys.
Passing Primitive Data Type Arguments (from oracle java tutorials)
Primitive arguments, such as an int or a double, are passed into methods by value. This means that any changes to the values of the parameters exist only within the scope of the method. When the method returns, the parameters are gone and any changes to them are lost. Here is an example: