1. OOP Class Test โ 1 on 08-03-2013 (Fri) at 3.10 pm
๏ผ Syllabus โ Week1 to Week-4 (up to ArraysandStrings)seecourseschedulemoredetails.
๏ผ F.M. =15
๏ผ Time= 40 mins
Suggestive Questions
1. What are the mostimportantfeaturesof Java?
2. What do youmeanby platformindependence?
3. What isa JVM?
4. Are JVM's platformindependent?
5. What isthe difference betweenaJDKand a JVM?
6. What isa pointeranddoesJavasupportpointers?
7. What are local variables?
8. What are instance variables?
9. How to define aconstantvariable inJava?
10. What isthe returntype of the main() method?
11. Why isthe main() methoddeclaredstatic?
12. What isthe argumentof main() method?
13. Can a source file containmore thanone class declaration?
14. What isthe purpose of declaringavariable asfinal?
15. What isthe impactof declaringa methodasfinal?
16. I don't wantmy classto be inheritedbyanyotherclass.What shouldi do?
17. What isthe importance of staticvariable?
18. Why main() injavaisdeclaredaspublicstaticvoidmain?
19. What isthe difference betweenconstructormethodandmethod?
20. What ismeantby variable?Whatare the kindsof variablesinJava?Whatare theiruses?
21. What isan array? What isa string?
22. What are operatorsandwhat are the varioustypesof operatorsavailableinJava?
23. What are difference betweenbreakandcontinue?
24. What isthe difference betweenwhile statementanda dostatement?
25. What isa constructor?
26. Whichmethodisusedto garbage collectan object?
27. What are the functionsof the dot(.) operator?
28. What are the differentaccessmodifiers injava?
29. What isdata hiding?
30. Why the javafile name issame as the class name that containsthe mainmethod?
31. What isbytecode?
32. How to compile andexecute ajavaprogram?
Programs
AssignmentProgramsandsimpleprogramsfromarraysand strings.