Java Language Interview Question and Answers

31. What is the List interface?
  The List interface provides support for ordered collections of objects.
Your Name Your Email-ID
Your Answer
32. What is the Vector class?
  The Vector class provides the capability to implement a growable array of objects.
33 What is the base class of all classes?
34 What is the importance of static variable?
  static variables are class level variables where all objects of the class refer to the same variable. If one object changes the value then the change gets reflected in all the objects.
35. What is the difference between a while statement and a do while statement?
  A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do while statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do whilestatement will always execute the body of a loop at least once.
123456789101112 Page 7 of 12