You are on page 1of 6

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

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

3 (c) Start. 68. What is a deadlock? 69. What is a byte stream? 70. What is the function of insert ( ) method? 71. Write on Datagram socket. 72. What are the different methods used to terminate an applet?

5 Marks
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 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. Explain the concept of classes and objects and their implementation in java 17. What is a package? Write the steps involved in importing a user defined package 18. Define the synchronization with illustration 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 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, 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

4 November 2008 35. 36. 37. 38. 39. 40. 41. Give the syntax of Do-While statement and explain with suitable example. Explain abstract class with suitable example. Write a program for Fibonacci series. Explain how exception handling is done in JAVA. What is the usage of synchronized method? List out any five byte stream classes and mention ists use. Write a Java program to arrange the given names in alphabetical order.

10 marks
1. Explain the control structures in Java 2. Briefly explain the features of java 3. Write the syntax of applet tag and also write the attributes in applet tag write its purpose 4. Explain method overloading and nesting of methods with an example 5. Write a program to find the product of 2 matrices 6. Write ten differences between C++ and Java 7. Explain the control structures in java 8. Explain method overloading and nesting of methods with an example 9. Write a program to find the rows and columns sum of the given matrix 10. Write a detailed account on layout managers 11. Explain the methods in thread class with a n example 12. Write a program in java to store number, name and mark for n different students. Read the same file and display the details of student whose marks > 50 13. What are arrays? Explain one and multi dimensional array implementation 14. What is the various access modifiers implemented in java language? 15. Explain the overloading and overriding methods 16. Give short notes on (a) (b) (c) Thread Exception Handling Messaging

17. Explain IO Streams and File Streams with illustrations 18. Explain all the layout managers 19. Write a program in java to print the sum of matrices 20. Explain overloaded constructors with an example 21. Explain the process of creating and using user defined packages with an example 22. Write a program to sort an array of strings in alphabetical order 23. Write a program to simulate the functioning of a four function calculator use AWT controls 24. Write a detailed account on layout managers 25. Explain the benefits of OOPS concept 26. Write a detailed account on Layout managers 27. Write a program to generate the square root of the first 25 numbers using Runnable interface 28. Define the terms arrays. Explain the method of defining and using arrays with an example 29. Explain the methods in thread class with an example 30. Write a program to find the addition of 2 matrices 4

5 November 2008 31. Write a program to establish a connection between a client and a server. 32. Write an applet program that contains a banner with different colors and different fonts. 33. List out any 10 AWT classes and explain them. 34. Using a small interface program, explain the concept of JAVA interfaces. 35. What do you mean by Multithreading? Explain. 36. Write in detail about lists in awt control.

April 2008
2 marks
1. What is a variable? How to declare variable in java? 2. What is a bytecode? 3. What is a class? Give an example 4. What is an inheritance? Give an example 5. What are the differences between static variable and instance variable? 6. List out the 3 common run time errors 7. What is synchronization? Explain it. 8. What is a stream? What are the 2 types of streams? 9. Write a note on Char Array Reader 10. Name any 3 Tags used in Java Doc Comments. 11. What is the use of URL class in java? Name any 2 methods in it. 12. Distinguish between components and containers.

5 Marks
13. Explain the features of java 14. List and explain various data types in java 15. What is an inner class? Explain with an example 16. What is package? Explain the procedure to create user defined package in java 17. Write a java program to explain multiple inheritance 18. Explain any 6 methods in string class 19. What is datagram? How does java implements datagram?

10 Marks
20. Discuss the control structures in java 21. Explain the method overloading and overriding with an example 22. Discuss the 2 ways of creating threads in java 23. Describe the different stages in the life cycle of an applet 24. Write a java program to read 10 names from the keyboard and sort them in alphabetical order 25. Explain the various AWT controls in details

November 2007
2 Marks
1. What are tokens? 2. List out any 2 features of java 3. Define object 4. What are inner classes? 5

6 5. Define abstract class 6. What are interfaces? 7. Define Stream 8. What is a file? 9. What is the difference between string class and string buffer class? 10. What is a proxy server? 11. What is a port? 12. Define Applet

5 Marks
13. Explain the general form of java program 14. Write a program to find whether the given number is Prime or not. Use a constructor 15. Explain the use of throws with an example 16. Write a program in java to check whether the given string is a palindrome or not 17. Explain any 6 methods in graphics class 18. Write a program to evaluate S = 1! -2! -3!...........(n terms) 19. Write notes on menus

10 Marks
20. Write a detailed account on object oriented programming concept 21. Write a program to pick out the second biggest number in an array of n integers 22. Explain the life cycle of a thread 23. Write a program to create a text file and count the number of words in it 24. Explain method overloading and method overriding with example 25. Write notes on: (a) Label Control (b) Check Box

You might also like