Advanced Java and J2EE Super Important
Advanced Java and J2EE Super Important
VTU previous year papers analysis by YouTuber Afnan Marquee. Watch the video now!
Module 1
In module 1, the questions have mainly been asked from the following topics:
● Autoboxing and Unboxing
● Enumerations
● Annotation
● Java.lang.enum
● Type wrapper
These are few of the questions which had been asked to your seniors:
Autoboxing and Unboxing
Compare and contrast autoboxing and unboxing in java with an example.
Enumerations
What are enumerations? Explain two predefined methods
Build a java program to create an enumeration class of seasons and demonstrate usage of
values() and valueOf() methods.
Explain construction of enumeration with an example.
Annotation
What are Annotations? Explain the following built in annotations with an example program:
@Override @Inherited @Retention
Describe 4 annotations which are imported from java.lang.annotations
Elaborate special kind of annotation that contains no members with its class.
Java.lang.enum
Explain the following methods of java.lang.enum with an example:
i) Ordinal ii) compareTo() iii) equals()
Type wrapper
What do you mean by type wrapper? Explain numeric type wrapper with an example.
Module 2
The questions in this module have been asked from the following topics:
● Collection framework
● HashSet, TreeSet, ArrayList, Queue
● Legacy classes
These are few of the questions which had been asked to your seniors:
Collection Framework
What is collection framework? Explain the methods defined by collection interface.
What are the various changes that collection framework underwent recently?
HashSet, TreeSet, ArrayList, Queue
Explain the constructors of HashSet class with an example.
Explain the constructors of TreeSets class with java pgm to create Tree set collection.
Demonstrate ArrayList class for collection with an example.
Write the syntax declaration of Queue Interface and explain any four methods defined by queue.
Explain the methods defined by DeQueue.
Legacy classes
Explain any four legacy classes of Java’s collection framework.
Explain four legacy methods defined by vectors.
Module 3
The questions from this module are asked from the following topics:
● String and its methods
● StringBuffer class and its methods
● String Builder and Character Extraction methods
String and its methods
What is string in java? Write a program that demonstrates any four constructors of string class.
Differentiate between equals() and == with respect to string comparison.
Explain the following methods:
substring(), concat(), replace(), trim()
Write a Java program which prompts the user for the name of a state and then displays that
state in capital.
StringBuffer class and its methods
Explain the following methods of StringBuffer class:
append(), insert(), reverse(), replace()
String Builder and Character extraction methods
Explain string builder.
Explain the following character extraction methods:
charAt(), toCharArray()
Module 4
The questions from this module are asked form the following topics:
● Servlets and its programs
● Core classes and interfaces
● Cookies
● HTTP
The following questions were asked to your seniors:
Servlets and its programs
Explain the difference between servlets and CGI programs
Write a java servlet program that demonstrates how parameters can be accessed from HTML
Define JSP. Explain the different types of JSP tags by taking suitable example.
Explain lifecycle of servlet
Write a Java servlet program to accept two parameters from webpage and find the sum of them
and display the result in webpage. Also give necessary html script to create webpage
Core classes and interfaces
List and explain core classes and interfaces in javax.servelt package
Cookies
What are cookies? Explain two methods of cookies and how they are handled in JSP.
Write a program to create with name “username” and cookie value “abc”. Also, display stored
cookie in webpage.
HTTP
With a code, explain how to handle HTTP get requests and HTTP post requests.
Module 5
The questions that have been asked from this module are from the following topics:
● JDBC drivers
● Code snippets for JDBC
● Other imp terms
The following questions were asked to your seniors:
JDBC drivers
Explain four types of JDBC drivers
Explain three types of exception occurred in JDBC
Code snippets for JDBC
Write a Java Program to
i) Execute a database transaction
ii) Open a connection
iii) Connect a database using URL
iv) Connect using ID/Password
Other concepts and imp terms
i) Transaction Processing
ii) Updatable Result set
iii) Callable Statement Object
iv) Prepared Statement Object
Explain different types of statement object in detail.