Examveda

What does the following Java code do?
public Object function()
{
	if(isEmpty())
	return -999;
	else
	{
		Object high;
		high = q[front];
		return high;
	}
}

A. Dequeue

B. Enqueue

C. Return the front element

D. Return the last element

Answer: Option C


This Question Belongs to Data Structure >> Introduction To Data Structures

Join The Discussion

Related Questions on Introduction to Data Structures