Вы находитесь на странице: 1из 5

B.

Tech (CSE)

JAVA PROGRAMMING
TUTORIAL SHEET
Tutorial Sheet 1 Q1: What is Object Oriented Programming? How it is different from procedural oriented programming? Q2: Explain important features of Java? What are different tools of JDK? Q3: How Java differ from C and C++? Q4 Why java is treated as platform independent language? Q5 What is Byte code, Java Virtual Machine and Java Runtime Environment? Q6 What is Java API? Explain different built in packages available in java? Q7 Which are different data types available in java? Q8 Describe the structure of a simple java Program? What is the task of main method in java program? Q9 How java is more secure and Robust than other languages? Q10 Describe various system requirements for internet programming? Tutorial Sheet 2 Q1 What is command line argument? How they are used? Q2 Define the scope and lifetime of a variable within a program? Q 3What is a class ? what are the three parts of a simple class? Q4 What is constructor? What are its special properties? Q5 Compare and contrast overloading and overriding methods by giving example? Q6 What is abstract class? Where do we use it? Q7 What is inheritance and how does it help to create a new class? What are the different types of inheritance? Q8 Explain garbage collection? What is the purpose of finalize method? Q9 What is the use static keyword? When we declare a member of a class as static? Q10 Give the difference between super and this keyword?

Tutorial Sheet 3 Q1 What is an Array? Why they are easier to use as compared to a bunch of related variables? Q2 What is purpose of interface? Give the similarities between class and interface? Q3 Give the difference between abstract class and an interface? Q4 What is Package ? How we can create and import a package? Q5 Discuss various levels of access protection available for packages and their implications? Q6 Discuss frequently used packages available with java API ? Q7 Which package in java is treated as default package? Q8 Explain CLASSPATH? How to set CLASSPATH? Q9 What is the difference between public ,private and protected modifiers? Q10 How not-defined and public member of a class are different from each other? Tutorial Sheet 4 Q1: What is Exception? Explain the exception handling mechanism? Q2 How try catch block is used to handle exceptions? Q3 Define checked and unchecked exceptions? Name some of them? Q4 What is the difference between final, finally & finalize? Q5 What happen if a throws exception is not caught? Q5 List some common exception that might occurs in java? Q6 What is the difference between throw and throws ? Q7 How we can create our own exception? Discuss by giving example. Q8 What is finally block? When and How is it used? Give example to explain it? Q9 How Exception Handling mechanism can be used to for debugging a program? Q10. Give example to show multiple try-catch block? Tutorial Sheet 5 Q1: What is Thread? How it is different form a thread? Q2 Describe the life cycle of a Thread? Q3 Which are the two methods to create a Thread based program?

Q4 Discuss various methods within Thread class? How do we set priorities for thread? Give example. Q5 What is the difference between suspending and stopping a thread? Q6 What is synchronization in threads? Give example to explain it? Q7 Differentiate between wait() and sleep()? Q8 Which interface must be implemented to create a thread based program? Explain the method contained within this interface? Q9 How do we start a thread? Which two methods by which we can stop a Thread? Q10 Develop a simple Thread based program to demonstrate the concept? Tutorial Sheet 6 Q1: Discuss all the constructors of String and String Buffer class? Q2 Explain the StringTokenizer class? Give example to separate token form a String? Q3 What is wrapper classes? What is the use of it? Q4 Discuss the various objects in java.util package. Q5 Discuss various objects in java.io package? Q6 Explain various methods of String and StringBuffer class? Q7 What is a file? How data is stored and retrieved from a file? Q8 What is a Stream? How is the concept of stream is used in input/output operations in java? Q9 Distinguish between (a) InputStream and Reader class (b) Outputstream and Writer class Q10 What is the difference between (a) Vector and ArrayList (b) Hashtable and HashMap

Tutorial Sheet 7 Q1 What is an Event ? Give name of sources of Event> Q2 Discuss Action Event and Action Listener ? Explain with example? Q3 What is Event Source and Event Listener? Explain the mechanism how event handling works?

Q4 Name various event source and their corresponding event listeners interfaces? Q5 What is Adapter Class? Why do we need them? Q6 Explain the Delegation Model for event handling? Q7 Which AWT controls generate ActionEvent?Give example? Q8 What is the highest level event class in event delegation model? Q9 What is the purpose of enableEvent() method? Q10 Which event id generated when move the indicator of a scrollbar? Tutorial Sheet 8 Q1 What is the difference between component and container? Q2 Discuss various control items available in awt package in java? Q3 What is Frame? Write a program to demonstrate the frame? Q4 How to add and handle a button on a frame? Q5 Differentiate the following 1) 2) 3) 4) 5) Label and Button Textbox and TextArea List and Combobox Slider and Scrollbar CheckBox and CheckBoxGroup

Q6 What is Layout Manager? Discuss various layouts available in java.awt and what is the default Layout manager for the panel and the panel subclasses? Q7 How to change the current layout of a container? Q8 What is the different between swing and awt? Q9 Differentiate 1) Aplet and Japplet 2) Frame and Jframe Q10 Explain lightweight and heavyweight components Tutorial Sheet 9 Q1 What is an Applet? Create and run a simple applet? Q2 What is local and Remote applet? Q3 Explain the life cycle of an Applet? Q4 What is applet tag and appletviewer tool?

Q5 What is the difference between applet and application? Q6 Discuss steps involved in creating an running local applet? Q7 How to pass parameters to an applet using PARAM tag? Q8 How to add different components like Label, Button on an Applet? Q9 Why do Applet class needs to be declared as public? Q10 What is the difference between init() and start() method of Applet?

Вам также может понравиться