- Differentiate C++ and JAVA w.r.t inheritance. Also mention the use of super and this in Java.
- Define inheritance. List the different types of inheritance in java
- Illustrate with example a super class variable can reference a subclass object.
- Compare and contrast method overloading and overriding
- Define inheritance. Explain multilevel hierarchy with an example program.
- Discuss the terms: a)super b) final c) abstract class
- Can you overload constructor and destructor ? Justify with suitable program.
- Briefly explain the role of interfaces while implementing multiple inheritance in java
- What is the alternative approach to implement multiple inheritances in Java? Explain with example.
- What is meant by instance variable hiding? How to overcome it?
- With an example, give two uses of super.
- Discuss the following a. Inner class b. Overriding and overloading c static variable and methods
- Write a program which contains one method which will throw IllegalAccessException and use proper exception handlers so that exception should be printed.
- Explain the constructor method. How is it different from other member functions.
- What is a Java exception? Explain the exception handling mechanism with an example.
- Define Exception. Demonstrate the working of nested try block with suitable examples.
- Create a try block that is likely to generate three types of exceptions and incorporate necessary catch blocks to handle them.
- Explain the java’s built-in exceptions.
- Give the basic form of an exception handling block.
- What is the importance of the clause finally.
- Illustrate the usage of throw in exception handling with suitable example.
Thursday, August 11, 2022
Object Oriented Concepts - Module 3
Wednesday, August 10, 2022
Object Oriented Concepts : Module 4
- What is multithreading? Explain any two uses of multithreaded programs.
- Write a Java program to implement a producer-consumer problem using threads.
- Explain the mechanism of event delegation model. Give an example for using keyboard event.
- What is multithreading? Write a program to create multiple threads in Java.
- Discuss the significance of synchronization in Java.
- Briefly explain the role of : a. ActionEvent class b. AdjustmentEvent class
- With syntax, explain the use of isAlive() and join() methods.
- How synchronization can be achieved for threads in Java? Explain with syntax.
- Enlist the different methods in WindowListener. What is the use of WindowAdaptor?
- Write a program in applet which will print “key pressed” on the status window when you press the key, “key released” on the status window when you release the key and when you type the characters it should print “Hello” at coordinates (50,50) on applet.
- What is meant by thread priority? How it is assigned?
- Explain the adaptor classes with examples.
- Provide Java syntax for the following:
a. Making class threadable.14. Write a Java program which creates two threads, one thread displays “VTU-Belgaum” for every 100 seconds, and another thread displays “Karnataka” for every 50 seconds continuously.
b. Extending thread.
c. Synchronization
d. Catching interrupt
15..Define the delegation event model. Briefly explain the role of
a. Event classes
b. Event listener interfaces
c. Sources of events
d. Adaptor classes
16. Describe the various levels of access protections available for packages and their implications.
17. Define package. What are the steps involved in creating user defined package with an example.
18. Explain how variables in interfaces are used.
Tuesday, August 9, 2022
Object Oriented Concepts : Module 5
- Discuss delegation event model with suitable example.
- Explain with suitable example inner class
- Explain JComboBox with example.
- Describe the two keys features of swings.
- Create swing applet that has two buttons named beta and gamma. When either of the buttons pressed, it should display “beta pressed” and “gamma pressed” respectively.
- Explain any 8 event listener inter-faces with syntax
- Explain different methods of applet.
- Explain the HTML applet with syntax and example
- Explain the following with an example for each and syntax.: A) .JLabel B) JTextField C) .JButton D) .JCheckBox E).JComboBox F) Jlist
- Explain a simple swing application with suitable program
- Explain delegation event model in Java.
- Write a Java program to handle mouse event.
- Create a swing applet that has two buttons named as "CSE" and "ISE". When either of the button is pressed, it should display "CSE" is pressed" and "ISE is pressed" respectively.
- Explain briefly the components and containers used in swings.
- Write a swing program to create a table with column heading as StudentName, USN, Address and insert 5 records into the table and display on screen.
- Explain key event class
- Describe key features of Swings in Java.
- Compare AWT and Swings.
- Write a note on JFrame and JButton.
Object Oriented Concepts - Module 2
- List and explain the java buzzwords.
- Explain how java is robust and interactive
- Explain type conversions in java with suitable example.
- Explain the concepts of arrays 'in java with examples.
- Write a java program to sum only first five elements of the array using for each looping.
- Write a java program that creates and initialises a four integer element array. Find the sum and average of its value.
- Explain the syntax of for-each loop.Write a java program to search a key element by using for-each loop.
- Explain type conversion in java with an example.
- Write a java program to initialize and display different types of integer and floating point variables.
- Explain the operation of the following operators: with an example i) % ii) >>> iii) && iv) >>
- What is type casting. Illustrate with an example.
- What is meant by automatic type conversion. Give example
- How to declare two dimensional array in java? Explain with simple example.
- Differentiate the usage of access specifiers in java and their scope.
- List and explain different jump statements used in java with suitable example.
- List and explain different iteration statements used in java with suitable example.
- Explain switch case usage with suitable example in java
- List the different types of operators in java and explain any three.
- Illustrate the usage of primitive datatypes and their default values for an instance variable with suitable example.
- Write a java Program to illustrate data types, variables, and functions
- Write a java Program to illustrate the concept of classes and objects.
Subscribe to:
Posts (Atom)
Database Management systems - Module 2
1 a. Explain the entity integrity and referential integrity constraints. Why is each considered important. Give examples. b. Discuss eq...
-
Module 1 Define IOT. Explain Evolutionary phases of the internet What is IOT? Explain in detail on Genesis of IOT. What does IOT and digi...
-
List the key features of Python Programming Language. What is the role of a programmer?. List at least two skills required to be a best ...
-
What is a class?. How to define a class in Python?. How to instantiate a class? How the members are accessed? Differentiate class varia...