0% found this document useful (0 votes)
5 views1 page

Java Programming Model Questions and Answers

This document contains model questions for a Java programming exam, including short answer questions about Java features like its write once, run anywhere nature and static members. It also includes longer questions about Java concepts like classes, objects, applets, threads, and JDBC. Sample programs are requested on calculating rectangle area using classes/objects, drawing an applet, and printing numbers with thread timing.

Uploaded by

narendra
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)
5 views1 page

Java Programming Model Questions and Answers

This document contains model questions for a Java programming exam, including short answer questions about Java features like its write once, run anywhere nature and static members. It also includes longer questions about Java concepts like classes, objects, applets, threads, and JDBC. Sample programs are requested on calculating rectangle area using classes/objects, drawing an applet, and printing numbers with thread timing.

Uploaded by

narendra
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

Java Programming

Model Questions:
Short Question
1. What gives Java its write once ,run anywhere nature??
2. What is static member? How it is useful??
3. String s="abc";
[Link]([Link](3));
4. double [][]x=new double[4][5];
[Link]([Link]); [Link](x[0].length);
[Link](x[2].length); [Link](x[0][1].length);
5. What is the difference between String and StringBuffer class in Java?
6. Differentiate between a java application and an applet?
7. Which methods in the Thread class are deprecated?
8. What is the difference between checked and unchecked exception?
9. What are the steps to add a class to package?
10. Which method belongs to every event object?

Long Question:
1. Explain five feature of Java programming language.
2. Write down a java program using class and object concept to calculate the area of
rectangle.
3. Write short notes on JVM and byte code.
4. Draw a Smiley using java applet to represent on browser.
5. What is JDBC? Explain with an example how SQL statements are written and executed in
Java.
6. What are the ways to create threads? Write a java program that prints from 1 to 10 line
by line after every 10 seconds.

You might also like