You are on page 1of 3

IT2305 JAVA PROGRAMMING QUESTION BANK

IT2301 QUESTION BANK: PART-A: What is the difference between static and non-static variables?\ What is the purpose of finalization? What is the difference between the String and String Buffer classes? Can an abstract class be final? Why? What is an anonymous inner class and static inner class? What is the difference between the File and Random Access File classes? What are the advantages of the event-delegation model? What happens if an exception is not caught? What is the use of Reflection API? What are three ways in which a thread can enter the waiting state? Give thae properties of abstract class and methods. Why does java not support destructors and how does the finalize method will help in garbage collections? Write a declaration to convert the value of Programmer in the string variable convert to Programming. Distinguish between dynamic and static binding. What are the advantages of the eventdelegation model? Define Proxy class and its methods. State the properties of interface. Write down the statements used to create a JFrame and a JButton and then add the JButton to the JFrame. List any two advantages of type parameters. When would you use the CountDownLatch synchronizers and Exchange Synchronizers? When do the following events occur? i) AdjustmentEvent ii) ItemEvent PART-B Unit-I 1. How objects are constructed? Explain constructor overloading with an example. 2. Write short notes on access specifiers and modifiers in java. 3. Write a java program to check whether the number is palindrome or not. 4. State the design hints for class and inheritance and also discuss the working and meaning of the static modifier with suitable examples. 5. Explain in detail as how inheritance and polymorphism are supported in java with necessary example. 6. Explain the concept of finalization. Explain the finalize() method with an example program and explain about mutators. 7. Discuss the working and meaning of the static modifier with example.and explain static variable and static methods with an example program. 8. Explain about Encapsulation, Abstraction.

1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.

9. Define constructor. How objects are constructed? Explain constructor example. 10. write a java program to check whether the number is prime or not.

overloading with an

UNIT-II 1. What is a Package? What are the benefits of using packages? Write down the steps in creating a package and using it in a java program with an example. 2. Write a java program to search for a number in the given array using binary search method. 3. Explain about Java Documentation comments with an example programs. 4. What is Dynamic binding? Show with an example how dynamic binding works. 5. Explain about arrays, Type of arrays and arrays methods. 6. Explain about Final class, Fields, Methods. 7. Explain about different types of string methods. 8. Write a java program to implement the multiple inheritance concepts for calculating area of circle and square. 9. Design a Java package for numbers. Develop two different classes that belongs to two package, one for to check whether the given number is palindrome or not and the other to check whether the given number is odd or even and access these package using one main file 10. Design a Java interface for numbers. Develop two different classes that implement this interface, one for to check whether the given number is palindrome or not and the other to check whether the given number is odd or even. 11. Develop a java code to implement the interface concept for finding the sum and average of given N numbers UNIT-III 1. Explain the concept of inner classes and explain the types of inner classes with an example program. 2. What is reflection and how does it help to manipulate java code. 3. How is a Frame created? Write a java program that creates a Online Education Loan System. 4. Consider a class person with attributes firstname and lastname. Write a java program to create and
clone instances of the Person class. 5. Write short notes about I/O stream classes.

6. How is a Frame created? Write a java program that creates a product enquirer form using frames. 7. Explain about interface with an example programs. 8. Explain about Graphics programming and Explain all 2D packages and classes. 9. Write a java program to implement the reflection concept for Date class. 10. Write a java program to draw the circle, ellipse, rectangle in the frame using Java swing. 11. Develop a java swing program to display 8 swing buttons and arrange that components using grid format. 12. Develop a java swing code to create G-mail sign-in form with grid layout format. 13. Explain about Proxy class, Interface and Methods. 14. Develop a simple paint-like program that can draw basic graphical primitives in different dimensions using java swing. 15. Explain about callback. UNIT-IV

1. With a neat diagram explain the Model view controller design pattern and list out the advantages and disadvantages of using it in designing an application. 2. Write the short notes about swing components with menu example programs. 3. What is an Exception? Explain the exception hierarchy. Explain how to throw, catch and handle Exceptions. 4. Write the java swing program to create the g-mail sign in form and display that content to text area using insert button. 5. Explain about adapter classes and mouse events with an example. 6. Explain the menu components. Write a swing program to display the FILE menu (Menu Item: NEW, OPEN, SAVE, SAVE AS) with SAVE AS sub menu. 7. Explain about Layout management and AWT Event hierarchy. UNIT-V 1. Explain the thread state, thread properties and thread synchronization. 2. Write a java program that prints numbers from 1 to 10 line by line after every 5 seconds. 3. Briefly explain about the Thread Synchronization and synchronized keyword with an example program. 4. With a neat diagram explain the thread states. 5. Explain the following term: 1. Generic reflection 2. Inheritance rules for generics 3. Bounded types & Un-Bounded types. 4. Limitations and restrictions of Generic programming. 6. What is Generic programming and why is it needed? Explain with example. List the limitations and restrictions of generic programming

You might also like