Professional Documents
Culture Documents
Cp2 Viva Questions
Cp2 Viva Questions
1. Features of java
2. Explain portable/platform independent, Robust, Multithreading and interpreted
feature of java.
3. Is portability & platform independency the same?
4. Though java gets executed in 2 stages,still it gives high performance, how?
5. Explain the main Line public static void main(String args[])
6. Explain how string args[] work in main line
7. What are instance static, and local variables?give there declaration place, scope and
life
8. how do we communicate with class members from outside the class?
9. for which type of variables initialization is mandatory in java
10. List five concepts which are there in c/c++ but not in java
11. Explain jdk, jvm, api
12. difference call by value n call by reference with one example each.
13. syntax for
• declaration of an array
• creation of array
• initialization of 1D and 2D array
• System.arraycopy method
14. in system.arraycopy method what is system? Why arraycopy is called with class
name system?
15. Give 1 example explaining array of objects. What are the steps which will make that
array execute?
16. Give drawbacks of arrays and their solution.
17. What are vectors? What do they store ? advantage and disadv.
18. what are classes known as which help in converting primitive data types to objects.
19. what is the default capacity of vector ?
20. give basic constructors of vector class.
21. consider the following
• Vector v1=new Vector()
• Vector v2=new Vector(5);
• Vector v3=new Vector(5,3)
Give capacity & size of v1,v2,v3. what if I add 6th element in v2 n v3 what changes will
be observed in capacity of both the vectors
}
catch(Exception e){}
catch(ArithmeticException e){}