Answer:
I don't think a pocket watch is considered a computer based off of my logic. Other people may think differently tho.
Explanation:
Answer:
You are creating an array "values" which stores 15 integers. And if we will write int[15]=20, we are not following correct syntax. Hence, nothing will happen, and it might however, throw an error that the syntax is wrong.
Explanation:
int[15]=20 is a wrong syntax, and hence nothing will happen or computer might throw an error like that not correct syntax is being used. And if we write values[15]=20, It will certainly throw ArrayIndexOutOfBoundsException as the maximum length is fixed to 15 and values[14] and not more than that.
Answer:
replace()
Explanation:
The history object in javascript corresponds to browsing history.
It has the following methods for navigating through the history list:
back(): Go back in the history list
forward(): Go forward in the history list
go() : Navigate to the currently pointed url in the history list. It takes a parameter which can either be a numeric index or a string which is matched with the history list content.
replace() is not a method in the history object.