1

Question Bank
Subject 2 Marks
1. Define variables with an example 2. Write any 3 java Development tools and write its purpose 3. Write a program to find the average of 3 numbers 4. Name the different types constants defined in java 5. Write the rules involved in framing variables names 6. Find the output of the program for(int i = 0 ;i<=5;i++) System.out.println(“All the Best”); 7. What are the five methods that are called during the life cycle of an applet? 8. Write the four steps fro the development and execution of a simple applet. 9. Define: (a) object (b) Abstract class 10. Write an applet program to draw an arc in red color 11. What are constructors? 12. Define: Inner classes 13. List out any 3 benefits of object oriented programming 14. Define (a) variable (b) object 15. List out any 2 difference between C++ and Java 16. What is the use of finalize () method? 17. Define (a) Abstract class (b) Inheritance 18. Define (a) Exception (b) Interface 19. Define (a0 Applet (b) File 20. List out any 4 AWT controls 21. What do you mean by multithreading 22. Write a program in java to add 2 numbers 23. Write an applet program to display a rectangle 24. Write a program in java to illustrate single level inheritance 25. Define Inheritance and Polymorphism 26. Explain the various data types in java 27. What is constructor? Explain it 28. What is an abstract class? 29. What is deadlock? 30. Explain briefly about string buffer 31. What is an interface? How it is implemented in java 32. Discuss the java utilities 33. Write short notes on code documentation 34. Give short notes on sockets 35. What are menus? Name the different menu classes 36. Define variable 37. What is an array? 1

: Programming in Java

What is a package? 41. What is the use of ‘this’ keyword? 60. Mention any three character escape sequence and their use. What is a constructor? 65. Write a program to find the area and perimeter of a rectangle 59. 46. What do you mean by multi threading? 47.out. What is an applet? 48. Write a program in applet to display a square 58. Define class 39. What is a computer network? 45. Write a short notes on the different states in the life cycle of a thread 53. What do you mean by a thread? 52. What are the following methods meant for? (a) Sleep (b) Get Name 2 . 64. m = m+1.2 38. while (m<=n) { System. Define (a) classes (b) Objects 50. Give in short about the evolution of Java. What is a vector? 61. What do you mean by command line argument? 66. } 54. What is a deadlock? 55. What is the use of access specifier? 43. Define socket.println(n). while (n<=5) { int m = 1. What is the main advantage of constructor overloading? 49. November 2008 62. Write the 4 steps for the development and execution of a simple applet 56. What is a stream? 44.out. Define Inheritance 40. Define thread 42. } System. What do you mean by ‘exception handling’? 67. Define: Inheritance 51. List out any 4 AWT controls 57.println(). Find the output for the following program int n =1. What are the three object oriented concepts incorporated in JAVA? 63.

Define the synchronization with illustration 19. 33. 6. 25. 24. 11. 26. 21. Discuss the architecture of an applet with an example What are datagrams? Discuss datagram server and client Describe the components of AWT Write a program to pick out the biggest number in an array of n integers Explain Arithmetic exception. 30.3 (c) Start. 28. 14. What are the different methods used to terminate an applet? 5 Marks 1. What is a deadlock? 69. 23. 9. 7. 10. IO Exception with an example Write a program in java to read n strings and display only those strings which starts with Write short notes on socket class Explain built in packages Explain the operations in java Write a program to find whether a given number is prime or not What does a break statement do? How it is used in switch statement Explain the structure of a Java program What is an applet? How does it differ from application? Write an applet program to draw Traffic signal(Using setColor () option) Write a program to find the largest number in array of ‘n’ integers Explain the operations in java 3 runnable interface the character ‘A’ or ’a’ . 15. Explain the concept of classes and objects and their implementation in java 17. 29. 13. 12. 31. 5. 2. 34. 72. 32. 20. What is a package? Write the steps involved in importing a user defined package 18. What is the function of insert ( ) method? 71. 68. 8. 22. What is a ‘byte stream’? 70. Write on Datagram socket. 3. Write a program to find whether a given number is odd or even Write a program to find particular year is leap or not Explain built in packages What is the difference between a constructor and a method? Write the general form of switch statement with an example What do you mean by synchronization? Why do we need it? Write a program to create thread to find the factorials of the first ten natural numbers using List out the features of Java What are the benefits of OOPS? Explain the use of super keyword with an example List out any 6 built in packages Explain the use of Throw with an example Write a program to read n integers and print the odd numbers in them Write note on button control Explain various control structures in Java 16. 4. 27.

Define the terms arrays. Write a program to find the product of 2 matrices 6. Explain the process of creating and using user defined packages with an example 22. Explain the benefits of OOPS concept 26. 38. What is the usage of synchronized method? List out any five byte stream classes and mention ists use. Write a program in java to print the sum of matrices 20. Write a program to find the rows and columns sum of the given matrix 10. Explain IO Streams and File Streams with illustrations 18. Briefly explain the features of java 3. Explain abstract class with suitable example. 41. Explain the control structures in java 8. What is the various access modifiers implemented in java language? 15. 40. Explain overloaded constructors with an example 21. Write a program in java to store number. Write a program for Fibonacci series. Explain the control structures in Java 2. Explain the methods in thread class with an example 30. Write a program to generate the square root of the first 25 numbers using Runnable interface 28. Write a detailed account on layout managers 25. Explain the methods in thread class with a n example 12. What are arrays? Explain one and multi dimensional array implementation 14. Write the syntax of applet tag and also write the attributes in applet tag write its purpose 4. 36. Write a detailed account on layout managers 11. Write ten differences between C++ and Java 7. 39. Write a program to simulate the functioning of a four function calculator use AWT controls 24. Explain the method of defining and using arrays with an example 29. Explain method overloading and nesting of methods with an example 5. Explain the overloading and overriding methods 16. Explain how exception handling is done in JAVA. Give the syntax of Do-While statement and explain with suitable example. Give short notes on (a) (b) (c) Thread Exception Handling Messaging 17. Explain method overloading and nesting of methods with an example 9. Write a Java program to arrange the given names in alphabetical order. 10 marks 1. Write a program to sort an array of strings in alphabetical order 23. name and mark for n different students. Write a program to find the addition of 2 matrices 4 . Explain all the layout managers 19. Read the same file and display the details of student whose marks > 50 13.4 November 2008 35. 37. Write a detailed account on Layout managers 27.

Write a program to establish a connection between a client and a server.5 November 2008 31. List out any 10 AWT classes and explain them. Using a small interface program. What are tokens? 2. What is a class? Give an example 4. What are the differences between static variable and instance variable? 6. 8. Distinguish between components and containers. List out any 2 features of java 3. Write a java program to explain multiple inheritance 18. What is package? Explain the procedure to create user defined package in java 17. Write a java program to read 10 names from the keyboard and sort them in alphabetical order 25. Name any 3 Tags used in Java Doc Comments. What is a bytecode? 3. What is datagram? How does java implements datagram? 10 Marks 20. 32. What is a variable? How to declare variable in java? 2. explain the concept of JAVA interfaces. What is an inner class? Explain with an example 16. Discuss the 2 ways of creating threads in java 23. Define object 4. Describe the different stages in the life cycle of an applet 24. Explain the various AWT controls in details November 2007 2 Marks 1. Explain the method overloading and overriding with an example 22. 11. Explain any 6 methods in string class 19. What is an inheritance? Give an example 5. 5 Marks 13. What is a stream? What are the 2 types of streams? 9. April 2008 2 marks 1. What is synchronization? Explain it. 12. What are inner classes? 5 . Write in detail about lists in awt control. List out the 3 common run time errors 7. 35. List and explain various data types in java 15. What is the use of URL class in java? Name any 2 methods in it. Explain the features of java 14. 33. 36. What do you mean by Multithreading? Explain. Write a note on Char Array Reader 10. 34. Write an applet program that contains a banner with different colors and different fonts. Discuss the control structures in java 21.

Explain the life cycle of a thread 23. Define abstract class 6. Explain method overloading and method overriding with example 25. Explain any 6 methods in graphics class 18. Write a program to evaluate S = 1! -2! -3!. What are interfaces? 7. What is a file? 9... Explain the general form of java program 14. Write a program to create a text file and count the number of words in it 24. What is a port? 12. Write a detailed account on object oriented programming concept 21.(n terms) 19. Use a constructor 15. Write a program to find whether the given number is Prime or not. Write notes on: (a) Label Control (b) Check Box 6 .. What is the difference between string class and string buffer class? 10... Write a program to pick out the second biggest number in an array of n integers 22..... Write a program in java to check whether the given string is a palindrome or not 17. Explain the use of throws with an example 16. What is a proxy server? 11..6 5. Write notes on menus 10 Marks 20. Define Applet 5 Marks 13. Define Stream 8.

Sign up to vote on this title
UsefulNot useful