Question 1
Each time a method is invoked, the system stores parameters and local variables in an area of memory, known as ________, which stores elements in last-in first-out fashion.
◦ a stack
◦ storage area
◦ an array
◦ a heap
Question 2
Which of the following should be defined as a void method?
◦ Write a method that returns a random integer from 1 to 100.
◦ Write a method that checks whether current second is an integer from 1 to 100.
◦ Write a method that converts an uppercase letter to lowercase.
◦ Write a method that prints integers from 1 to 100.