The document contains questions about various Java concepts like keywords, memory management, inheritance, abstraction, threads, exceptions, packages, JDBC, Swing components and event handling. It discusses features of Java like platform independence, data types, object creation and garbage collection.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
21 views
Java Assignment
The document contains questions about various Java concepts like keywords, memory management, inheritance, abstraction, threads, exceptions, packages, JDBC, Swing components and event handling. It discusses features of Java like platform independence, data types, object creation and garbage collection.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
List and explain the salient features of Java.
Explain the use of keywords super and this.
Explain how memory is allocated to objects in Java? Discuss the behavior of static members in Java. Write a java program to input a telephone no. and number of calls calculate and display bill amount which includes a fixed rent of rupees 400, the first 150 calls are free with excess calls, charge 80 paise each. Describe the components of Java Virtual Machine. Java is platform independent and strongly typed language. Justify your answer. Discuss in detail about super and final keywords. Explain about Variable Arguments(Varargs) and �this� keyword. How is the main() method of Java written? Explain it in detail. Describe the role of abstract and default methods. Explain in detail about how primitive data type values and objects are stored in memory. Discuss with suitable examples about overloading and overriding in Java. Explain the concept of final methods and final variables. Write a short note on the �abstract� keyword. Describe multilevel inheritance. What is a constructor? Explain the characteristics of the constructor. List and explain any five features of Java. Write a short note on access specifiers in Java. List and explain access specifiers in java. What is garbage collection in Java? How is it helpful? Explain the concept of final methods and final variables with a program.
What is an interface? How do we implement interfaces in a class?
Explain the concept of method overriding. Discuss the lifecycle of a Thread. What is a package? How do we create a package and implement it? Define an abstract class 'Shape' with an abstract method namely 'CircleArea' taking one parameter as radius to compute the area of a circle. Create another class 'Area' containing a method 'CircleArea' for printing the area of a circle. Create an object of class 'Area' and test class 'Area'. What are the different ways of creating a new Thread in Java? What is a package? How do we create a package and implement it? Explain the lifecycle of a Thread. Write a short note on the �synchronized� keyword. What is an interface? How do we implement interfaces in a class? What are the different ways of creating a new Thread in Java? Write a program that creates two threads. Each thread is instantiated from the same class. It executes a loop with 10 iterations. Each iteration displays a message �SYIT Java�, sleeps for 200 milliseconds. Discuss about throw, throws and finally keyword. What are the different ways of creating a new Thread in Java? Explain about interfaces in detail. Describe the lifecycle of a Thread. Explain the concept of method overriding. What is a package? How do we create a package and implement it? Differentiate between classes and interfaces. Define an abstract class 'Shape' with an abstract method namely 'CircleArea' taking one parameter as radius to compute the area of a circle. Create another class 'Area' containing a method 'CircleArea' for printing the area of a circle. Create an object of class 'Area' and test class 'Area'. Write a java program to demonstrate the user defined exception. What is the use of Layout Manager? Explain about GridLayout and BorderLayout. Discuss in detail about the JRootPane Explain about adapter classes in detail. Develop a frame that has three radio buttons Red, Green, Blue. Change the background color of the frame accordingly on selecting a radio button. Explain about ActionListener and FocusListener. Discuss in detail about the Statement interface. List and explain the handlers of KeyListener and MouseListener. Discuss in detail about adapter class. Explain about JCombobox. List and explain the drivers in JDBC. What is the use of Layout Manager? Explain about GridLayout and FlowLayout. Write a java program to insert and delete a record from the student(rollno, name) table. List and explain the four parts of JRootPane. Describe the JDBC drivers. Discuss about Layout Manager in detail. Write a java program using Split pane to demonstrate a screen divided in two parts, one part contains the names of Planets and another displays the image of the planet. When the user selects the planet name from Left screen, the appropriate image of the planet should be displayed on the right screen. How can we create a menubar on a window? Explain the classes and methods used. Explain about ItemListener and WindowListener. List and explain the components of JDBC. List and explain any five methods of JComponent. Write a java program to display the record from the student(Rollno, Name) table along with column names. Write a java program to update a record in the student(rollno, name) table. Discuss in detail about JOptionPane. Describe the role of adapter class. Describe the JDBC architecture. Write a short note on �JRootPane�. Write a java program to illustrate the JDesktopPane. Develop a frame that has three radio buttons Red, Green, Blue. Change the background color of the frame accordingly on selecting a radio button.