0% found this document useful (0 votes)
275 views3 pages

BCS306A Java Makeup Exam Imp

Importance questions

Uploaded by

friendname12345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
275 views3 pages

BCS306A Java Makeup Exam Imp

Importance questions

Uploaded by

friendname12345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Module 1: Introduction to Java (Core Concepts) - Define Object-Oriented Programming (OOP) and list its features - Explain Encapsulation with an example. - Describe Inheritance and give a real-world example - Define Polymorphism and demonstrate method overloading - Explain abstraction in Java with examples. - Discuss Java data types and variables, with examples. - Write code to demonstrate arithmetic operators and logical operators. - Control Statements: Explain if, switch, and while loop with examples. - Arrays: Define arrays in Java and write a code example - String handling: Write a program to demonstrate string manipulation. Module 2: Classes, Objects, and Methods - Explain constructor overloading with code. - Define the 'this' keyword and demonstrate its uses. - Discuss access modifiers (public, private, protected, default) - Write a program to show method overriding. - What is static keyword in Java? List uses of static for methods and variables. - Explain final class and final method with examples. - Write a program demonstrating single inheritance and multilevel inheritance. - Explain super keyword and its applications. - Define wrapper classes in Java and their importance. - Explain the use of garbage collection in Java. Module 3: Exception Handling and Multithreading - Explain the concept of exception handling and write a try-catch example. - Differentiate between checked and unchecked exceptions - Deseribe the finally block with code. - throw vs. throws: Write examples and explain differences. - Explain custom exceptions with an example. - Define multithreading and discuss the thread lifecycle. - Write code to create a thread by extending the Thread class - Write code to create a thread by implementing the Runnable interface - Explain thread synchronization and provide an example. = Describe inter-thread communication and wait(), notify(), notifyAll(). Module 4: Abstract Classes, Interfaces, and Packages - Differentiate between abstract class and interface. - Write a program to implement multiple inheritance using interfaces. - Define package in Java and explain how to create and import packages. - Discuss accessing class members across packages with examples. - Explain the use of static import and provide an example. - Write code for a custom package containing classes and demonstrate importing it. - What are nested interfaces and how are they used? - Describe default methods in interfaces and their significance - Explain marker interfaces with examples. - Demonstrate the use of abstract methods with code. Module 5: Applets, Event Handling, and AWT - Describe the lifecycle of an applet with a simple example. - Write a program to create a basic applet that displays text. - Explain AWT components (Button, Label, TextField) with examples. - Write a program using AWT layout managers (FlowLayout, BorderLayout). - Describe event delegation model in Java - Explain event listeners (ActionListener, MouseListener) and write a code example. - Discuss inner classes in Java and their use in event handling. - Write a code to implement mouse events in AWT. - Create a GUI application using AWT to capture button events. - What is the difference between applets and applications in Java? Additional Important Questions (Cross-Module) - Compare JVM, JRE, and JDK. - Explain access specifiers and their scope in Java. - Discuss the difference between string literal and new keyword for strings. - Describe anonymous inner classes with an example. - Write code to demonstrate dynamic polymorphism using interfaces. - What is object cloning in Java? Explain with code. - Explain serialization in Java and provide a simple example. - Discuss the concept of generics and how they are used in Java. - Write a code to demonstrate File /O operations in Java. - Explain Lambda expressions in Java with an example. ©

You might also like