What are the parts of a method in Java?
<access modifier> <return type> <function name> (<data type> <parameter name>) public static void main (String args)
What is the difference between pass-by-address and pass-by-value?
pass-by-address would pass the memory location of the variable. Passing the memory location is like giving a key to your house, which would mean that the function receiving it has access to its value. pass-by-value would pass the value that is held by the variable. Pass by value is just like duplicating the value of the variable. Copy paste if so you will from one variable to another.
What is the value of x in: 2x + 5 = 7
2x + 5 = 7 2x = 7 - 5 2x = 2 x = 1 The answer is x = 1.