0% found this document useful (0 votes)
3 views

java imp

Uploaded by

13PAWAN KALECO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

java imp

Uploaded by

13PAWAN KALECO
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

• Describe Life cycle of thread with suitable diagram.

***
• Write a program to read and write a file (Use character stream)**
• Give the usage of following methods***
i) drawPolygon ( )
ii) DrawOval ( )
iii) drawLine ( )
iv) drawArc ( )
v) drawRect( )
vi) getFont ( )
vii) getFamily ( )
• Mention the steps to add applet to HTML file and lifecycle of applet. Give sample
code.***
• Write a program to copy contents of one file to another.**
• Compare array and vector. Explain elementAT( ) and addElement( ) methods.**
• Explain any four features of Java.*
• Explain how to create a package and how to import it.How to create user defined
package in Java. Explain with an suitable example.***
• Write a Java program in which thread A will display the even numbers between 1 to
50 and thread B will display the odd numbers between 1 to 50. After 3 iterations
thread A should go to sleep for 500 ms.*
• What is constructor? List types of constructor. Explain paramaterized constructor with
suitable example.**
• Explain the difference between string class and string buffer class. Explain any four
methods of string class.***
• Define type casting. Explain its types with syntax and example.*
• Write a program to perform following task. *
(i) Create a text file and store data in it.
(ii) Count number of lines and words in that file.
• Distinguish between Input stream class and output stream class.*
• Explain dynamic method dispatch in Java with suitable example.*
• Differentiate between Java Applet and Java Application ( any four points)*
• Describe the use of any methods of vector class with their syntax.*

You might also like