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

JAVA PROGRAMMING LAST YEAR QUESTIONS

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

JAVA PROGRAMMING LAST YEAR QUESTIONS

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

JAVA PROGRAMMING LAST YEAR QUESTIONS

SHORT QUESTIONS

1. How is Object Create in Jawa?


2. Compare between JDK, JRE and JVM?
3. Difference between JDBC and ODBC?
4. Write difference JSP and Servlet?
5. Explain three keywords ‘This’, ‘Final’, ‘Super’, in Java.
6. Explain the feature of Java.
7. What is type casting? Give an example to explain it.
8. Explain destroy() method, a stage in the life cycle of an applet.
9. What do you mean by a package in Java?
10. State the different access specifiers available in Java.
11. What is difference between a function and a method?
12. Write an applet to draw square inside a rectangle.
13. Explain why Java is considered as the best language for Internet Applications.
14. Discuss various primitive data types supported by Java.
15. What do you mean by class and objects? Explain with suitable example.
16. Java is Platform Independent. Explain.
17. What is Inheritance? Give the type of inheritance.
18. Explain Servlet.
19. Why JDBC is use for database connectivity?
20. What is Layout Manager?
21. What is final variable? Give example also.
22. Explain the main component of JSP.
23. What are the different types of drivers used in Java database connectivity?
24. What is Applet viewer? Explain.

LONG QUESTIONS

1. Illustrate the features of Java Programming Language.


2. Define the advantages of Servlet over CGI? Explain with an example
3. What is Applet? Explain the describe life cycle of Applet.
4. Write a code in Java to generate single calculator using classes and accepting the two
integers and operator with all methods to input, display, add, subtract, product, and division.
5. What is Exception? Give different types of exception that could occur during runtime. Why to
handle exception?
6. What is the life-cycle methods for a JSP? What are the differences between the JSP custom
tags and Java beans?
7. Define Coofies. Explain the role of HTTP give the supportive example also.
8. What are the packages in Java? Illustrate the appropriate example.
9. Explain the following:
i. Multi-threading
ii. Encapsulation
10. Explain the following:
i. Package
ii. Exception handling
11. What is Java Script? Differentiate between Java and Java Script. Give the Supportive example
also.
12. What is Thread? What are the advantages of multithreading? Write a program in Java for
creating two threads.
13. Explain the following:
i. Super and Final
ii. Exception.
14. Define Cascading style sheet. Explain it with a supportive example.
15. What are packages? How packages are created in Java? Explain and give example also.

VERY LONG QUESTIONS

1. What is an exception? How is exception handled in JAVA. Difference between Throw and
Throws.
2. (a). Explain the concept of inheritance with its types.

(b). Discuss the key features supported by Object-Oriented programming language.

3. What are packages in Java? How a user defined package is created in Java, explain with
example.
4. Define thread. How to create a thread in Java? Write a program that executes two threads.
One thread will print the even numbers and another thread will print odd numbers from 1 to
5.
5. Mention various AWT Controls Explain over four of them.
6. What are Servlets? What are the advantages of Servlets over CGI? Explain working of
service() method of a servlet with examples.
7. Write a method in Java that takes two integer arguments and returns power of it. Suppose X
and Y passing as an argument then it returns X to power Y offer calculation.
8. What is thread priority? Write are the default values? Write a program to define two threads.
One thread will print 1 to 10 no. Whereas other will print 10 to 1 nos.
9. What is JDBC? List out JDBC components and types of drivers. Write difference between Java
Applet program and Java application program.
10. What is package? What are the benefits of package? Explain Java API packages. List out any
five methods of string class by giving an example.
11.
A. What is exception? What are the methods of handling exception in Java.
B. What is difference between Application and Applet? Explain how will you write a simple
applet to display Hello world message.
12. What do you mean by Cascading Style Sheet(CSS)? What are the advantages of CSS? How
many ways are there to specify style information in a document?
13. What is Servlet? Explain life cycle of servlet. Give the supportive example also.
14.
A. Explain Applet life cycle. Write all method used to create an applet.
B. Explain Socket. How many types of Socket can be created in Java. Give an example also.
15.
A. What is Inheritance in Java? Explain all its type.
B. What is JSP? Explain all the main component of JSP and advantage of JSP.\
16. What do you understand by Layout Manager? Give all type of layout available in Java with
the help of example.
17. What is JSP? Explain the advantage of JSP and main component of JSP also. How JSP is
different from Servlet. Give an example also.
18. Explain the following:
a. Applet viewer
b. CSS
c. RMI
d. Super and Final
e. AWT
19.
a. Explain servlet life cycle.
b. Explain drives used in connectivity in Java.
20. Create a file to contain information about student performance on a module. Each student
has a name. Roll No.. subject marks and result.
Or
What is Inheritance in java? Explain its types. If we need to extend more than one class. How
it works? Give the example also.
21. What is inheritance in java? Explain its types. If we need to extend more than one class, how
it works? Give the code also.
22. What is JSP? Explain the advantages of JSP and main component also. How is it differ from
Servlet? Give an example to support your answer.
23.
a. Explain Applet life cycle. Write the all methods used to create applet with example.
b. Explain socket. How many types of socket can be created in Java? Give example also.
24.
A. Define Multithreading. Explain the way to create the thread with suitable example.
B. Explain Servlet life cycle.
25.
A. Explain exception handling in Java. What is the method of handling exception in Java?
B. What is AWT? Explain about the various AWT controls available in java with an example
also.

You might also like