CS3391 QB Igce
CS3391 QB Igce
PART-A
PART B
PART-A
1. Identify what are the two ways of using super keyword.
2. Give the use of final keyword.
3. Differentiate method overloading and overriding
4. Define interface and write the syntax of the interface.
5. Express what Dynamic Binding is.
6. Describe whether you can have an inner class inside a methodand what variables can
you access.
7. Differentiate between abstract class and interface.
8. Point out what are inner class and anonymous class.
9. What are the four types of access modifiers?
PART-B
1. Consider a class student.Inherit this class in UG Student and PG Student. Also inherit
students into local and non-local students.Define five Local UG Students with a
constructor assuming all classes have a constructor
2. Explain the concept of inheritance with suitable examples
3. 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.
4. Define inner classes. How to access object state using inner classes? Give an
Example.
5. Differentiate method overloading and method overriding. Explain both with an example
6. program.
7. (i) Explain briefly on final keyword. (7)
(ii) Explain the concept of abstract class with an example. (6)
8. Explain the java program to demonstrate the Objects as Parameters – Returning Objects
PART-B
1. (a)Discuss about try, catch and finally keywords in exception handling with an
example. (8)
(b)List and explain data types and their corresponding wrapper class.
2. Explain in detail the important methods of Java Exception Class.
3. Explain in detail Chained exception with an example program and also explain in
detail the various exception types with its hierarchy.
4. Write programs to illustrate arithmetic exception, ArrayIndexOutOfBounds Exception
and NumberFormat Exception.
5. Write a java program for inventory problem to illustrate the usage of thread
synchronized keyword and inter thread communication process. They have three
classes called consumer, producer and stock.
6. Describe the life cycle of thread and various thread methods
PART A
PART B
1. Explain in detail about generic classes and methods in java with suitable example.
2. Describe briefly about generics with wildcards.
3. What are the restrictions are considered to use java generics effectively? Explain in
detail.
4. Explain the all the string operators with syntax and example
5. Explain the string comparison methods with an example.
6. Explain the string method for searching and modifying the string.
7. Explain the string buffer methods with an example.
8. Create a Central Library management system with libraries in different locations in a
city.Each library can order a book from the central library and give it to the requesting
customers.Availability of that book should be updated on each lending. Consider each
library as a thread that requests for a book for purchase from the cental library. If the
requested book count is less than zero, then central library provides an appropriate
message to the appropriate requesting library.Implement using Multithreading
UNIT V JAVAFX EVENT HANDLING, CONTROLS AND COMPONENTS
JAVAFX Events and Controls: Event Basics – Handling Key and Mouse Events. Controls:
Checkbox, ToggleButton – RadioButtons – ListView – ComboBox – ChoiceBox – Text Controls
– ScrollPane. Layouts – FlowPane – HBox and VBox – BorderPane – StackPane – GridPane.
Menus – Basics – Menu – Menu bars – MenuItem
PART A
1. What is JavaFX?
2. List out some of the important features of JavaFX
3. What do you mean by Scene Graph
4. What is the difference between radio button and ListView?
5. What do you mean by Layout.
6. What are the properties of FlowPane?
7. What are the properties of BorderPane?
8. What are the different classification of event?
9. What are the method are available in Menu?
10. What do mean by Event Handling ?
PART B
1. List and explain the important features of JavaFX
2. Explain the JavaFX Architecture in details.
3. Explain the JavaFX Application Structure in detail
4. Explain the following control with an example,CheckBox, ToggleButton,
RadioButtons,
5. Explain the following control with an example, ListView, ComboBox , ChoiceBox,
Scroll panes
6. Write a JavaFX program to create a registration form, which demonstrates controls in
JavaFX such as Date Picker, Radio Button, Toggle Button, Check Box, List View,
Choice List, etc.
7. Write a JavaFX program to demonstrates following layouts such as HBox, VBox,
Border Pane, Stack Pane, Text Flow, Anchor Pane, Title Pane, Grid Pane, Flow Panel
8. Explain the Event Handling with example.
9. Write a Java program to create a menu bar and add menu to it and also add
menuitems to the menu.