It does not work that way....I thought the same thing. The sound will always come out of your iPhone
The Fill color tab. Hope this helps!
Answer:
ssume that,
Maximum “students” count can be 10.
*Driver Class*
*Solution class*
import java.util.*;
class Student {
private String name;
private int rollNo;
public String getName() {}
public void setName(String name) {}
public int getRollNo() {}
public void setRollNo(int rollNo) {}
};
class ClassRoom {
private int i;
private Student[] students;
public void addStudent(String name, int rollNo) {}
public Student[] getAllStudents() {}
};
Answer:D) peek
Explanation:Peek operation or function is the method that is used for the returning of the values on the front of the queue or stack type datatypes. This operation function over those datatypes having group or collection of the elements and does not eliminate any element from the queue.
NOsuchElemnet exception is shown when there is the peek operation in the queue for the element to be displayed on the top and no deletion can take place .Thus, the correct option is option(D).
Cross-platform.
--------------------