Page 1

Core Java 1524 TYCM

1524 20910 3 Hours / 100 Marks 1. Attempt any Five of the following: 20 a) What are different Java components? Explain the role of Java runtime environment. b) Give basic structure of Java program. c) What do you mean by Java applet? How it different from Java application? d) Give difference between equals() and ‘==’ operator to compare two strings. e) What is event source and event listener as used in event delegation model in Java? f) What is interthread communication? List methods for doing the same (at least 2). g) What are AWT controls? Name and list purpose any 2. 2. Attempt any Two of the following: 16 a) Explain switch-case stamen in Java. Write a program to count the alphabets and numerics or special characters in an entered word. Use switch-case. b) Give example making proper use of break and continue statement in Java. Write a program to count incorrect login attempt with maximum of being five. c) Explain access control parameters in Java. State limitations of all access specifiers as regards inheritance. 3. Attempt any Two of the following: 16 a) Build a applet thread which would display scrolling information on the canvas area. b) What is super class and subclass? Explain any one type of inheritance with the help of programs. c) Explain finalize() method and garbage collection. When and where it is used? 4. Attempt any Two of the following: a) Give syntax and explain any four Vector class methods. Do they have any relation with wrapper class? b) Explain try-catch-finally clause in Java with the help of programs. c) What do you mean by thread and how will you create and run thread using Runnable interface?

16

5. Attempt any Two of the following: 16 a) Write a short note on Java applet. How will you initialize and terminate an applet? b) What are different event classes and interfaces? List four methods in mouse ans action listener interfaces. c) How will you write an HTML page for an applet? Give sample page. Describe the <applet> and <param> tag usage.

MSBTE Summer 2010 Yearly Pattern

-1-


Core Java 1524 TYCM 6. Attempt any Two of the following: 16 a) Write in short on Byte stream and Character stream classes. Draw their hierarchy. b) How will you create, write into and read back the text file in Java using buffered reader and write stream objects. c) Write code for creating buttons, check boxes, and radio buttons on from as shown below:

Name Education Male

Graduate

Female Hobbies

PG Diploma

Playing Reading

Submit

Cancel

Exit

-------------

Downloaded from http://www.tusharkute.com

MSBTE Summer 2010 Yearly Pattern

-2-

Java Programming 2010  

MSBTE Question paper