Sunteți pe pagina 1din 3

2-MARKS UNIT -1 1. Define object oriented programming? 2. What is platform independency? 3. What is byte code? 4. What is JVM ? 5.

Explain principles of oops? 6. Explain feature of java? 7. Define architectural neutral? 8. Difference between portable and architectural neutral ? 9. How do you declare identifiers and literals in java? 10. What are the datatypes available in java? 11. Difference between byte and character in java? 12. Justify why java is called as strongly typed language? 13. Difference between static and static method? 14. What is the use of instanceof keword? 15. What is command line argument? 16. List out keywords in java? 17. Explain difference between break and continue using java program? 18. What is exception handling in java? 19. Explain any one of the control statement in java? 20. List out operators available in java? 21. State difference between thread and multithread? 22. State difference between multithread and multitasking? 23. Various states of thread? 24. How do you create thread in java? 25. Various methods in thread? 26. Use of synchronised keyword in thread? 27. What is object persistence? 28. What is transient keyword? 29. Explain use of final keyword? 30. How automatic garbage collection works in java? 31. What is the use of system.gc() and Runtime.gc()? 32. Difference between garbage collection in c++ and java? 33. What is package? 34. List out some built-in package in java? 35. Explain acess specifier in package? 36. Why package is called as naming mechanism? 37. Explain the use of class path? 38. Stae difference between java.lang.* and java.lang.system? Which declara tion will take more time for compilation and run time execution? 39. What is interface? 40. Difference between interface and abstract classes? 41. How do you declare variable in interface? 42. What is the stream? 43. What are different types stream available in java? 44. Difference between byte stream and character stream? 45. Explain steps involved in creating a file? 46. Create a RandomAccessFile stream for the file emp.dat for updating the emp loyee information in file. 47. What is SequenceInputStream? Explain with an example. 48. Write a program to write primitive data type to a file. 49. Write a program to read primitive data type from a file. 50. What are modes available in random access file? 51. Distinguish between a) FileInputStream and FileReader. b) Fileoutputstream and FileWriter. 52.what is inner classes? 53.state the use of finalise() method. 54.why java is called as compiler and interpreter?

55.how do you access inner class? 56.demonstrate inner class with an example. 57.what is RTTI? 58.difference between method overloading and method overriding. 59.what is the use of native keyword? 60.what is the use of length keyword and demonstrate with an example.

UNIT-2 1. Explain life cycle of an applet. 2. Write an applet to illustrate the life cycle of an applet. 3. Explain the order of method invocation in an applet. 4. What are the interfaces available in applet class? 5. What are the differences between an applet and an application? 6. Write an applet to display an image and play a song. 7. Explain the AppletContext.how do u make applet to applet communication? 8. getCodeBase() and getDocumentBase() are same?explain. 9. what is an applet? 10. What is the use of appletviewer and show Status method? 11. Explain the applet tag with an example. 12. What are the mandatory attributes in applet tag? 13. Write an applet to display the current date and time. 14. Write an applet for growing text and growing image. 15. Write a program to display the name if the param tag consist of name=sex and value t= male then the output will be Mr. name.otherwise just display the name. 16. Using setBackground and setForeground method to randomly change the colo rs of an applet. 17. What is the default layout of an applet? 18. Write short note on a) font class b) update c)repaint d)paint method. 19. Write a program to print sum of 2 numbers using applet by creating 2 textbox and 1 button if the user clicks the button in one applet ,the result sh ould be displayed in other applet. 20. State the use of repaint() method in applet. 21. How do you update a portion of the applet? 22. Demonstrate an applets skeleton. 23. How do you debug in java? 24. How do you convert applet to application? 25. What are the restriction in applet to access resources of your local sys tem?

UNIT -5 1. What is JDBC? 2. How JDBC act as interface between java application and a database? 3. What are the three statements available in JDBC? 4. What is servlet? 5. State difference between HTTP servlet and Generic servlet. 6. How the browser passes parameter to an servlet? 7. List the methods of HTTP protocol. 8. State the difference between get method and post method.

9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

Explain the life cycle of servlet. List the methods of HTTP servlet. What is session tracking? Why HTTP protocol is called as connectionless protocol? Give an example for stateless protocol. What is cookies? How do you set permanent cookies in your browser? List out some of the web server. What is multi tier application? List out various logics of multi tier application. What are the session tracking methods available? State the difference between include() and forward() methods.

S-ar putea să vă placă și