Java Classes Question:

Download Job Interview Questions and Answers PDF

Stacks are controlled through two operations traditionally called ___ and _____
A) Push and Pull
B) Push and Pop
C) Pop and Pull
D) Pop and Peep

Java Classes Interview Question
Java Classes Interview Question

Answer:

Ans is :(B)push and pop

Push :Push is used to insert elements in the stack.

Pop : Pop is used to extract elements from the stack.

Download Java Classes Interview Questions And Answers PDF

Previous QuestionNext Question
Methods declared as static have several restrictions:1) They can only call other static methods.2) They must only access static data.3) They cannot refer to this or super in any way Which of these are TRUE?

A) 1 and 2
B) 1 and 3
C) 2 and 3
D) 1, 2 and 3
In Java it is possible to define two or more methods within the same class that share the same name, as long as their parameter declarations are different

A) True
B) False