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.