AJP Sample Oral Questions
AJP Sample Oral Questions
Unit 1
TC
9. Which method is used to output string to applet?
10. How do Applets differ from Applications?
11. How to insert your applets into html page?
12. What is the super class of all components of Java?
&
13. What are the methods of Jlabel class in Java Swing?
14. Write a simple Java Swing program to create a JButton?
-E
15. Why Swing is called light weight?
Unit 2
1. How can a GUI component handle its own events?
OE
2. Describe the three code segments that must be implemented for an event handler.
3. What are methods that are used to register a keyboard event listener?
4. Describe the steps for writing java code for different types of key events
5. What is event adapter class?
6. When should we use an event adapter class?
SC
7. What is the sequence for calling the methods by awt for applets?
8. Explain hierarchy of AWT?
9. What do you call an area on the screen that has nice borders and various buttons along
the top border?
10. What is the difference between the paint( ) and repaint( ) methods?
11. How to change a button from enable to disable after click?
12. What are steps involved in writing java program for mouse event handling?
13. What is an event and working principle of delegation model?
14. What are the problems faced by Java programmers who don’t use layout managers?
15. How are elements of a Borderlayout organized?
16. Where the CardLayout is used?
Unit 3
1. What are the advantages of a GUI?
2. What is Frame?
3. What are Dialog Windows used?
4. What are modes of Dialog?
5. What is the content pane?
6. What is difference between Container and Component?
7. What is collection framework?
8. What is the difference between the length of an Array and size of ArrayList?
9. What is the difference between scrollbar and scrollpane?
10. What is the use of the List interface?
11. When to use ArrayList and LinkedList?
12. What are the benefits of the Collection Framework in Java?
TC
13. What is the difference between Set and Map?
14. What is the difference between ArrayList and LinkedList?
Unit 4: JDBC:
1. Thin driver is also known as?
&
2. Which methods are required to load a database driver in JDBC?
-E
3. Which methods are required to load a database driver in JDBC?
4. What is the JDBC?
5. What is a JDBC driver and how many JDBC drivers are available?
6. Which JDBC driver is the fastest driver?
7. What are the JDBC API components?
OE
Unit 5: RMI:
1. What is Remote method invocation (RMI)?
2. Which package is used for remote method invocation?
3. Which Exceptions is thrown by remote method?
4. Which class is used for creating a client for a server-client operations?
5. Which package is used for all the text related modifications?
6. What are the different terms that are used in RMI?
7. What are the different types of classes that are used in RMI?
8. What is Remote class?
9. How does the communication with remote objects occur in rmi?
10. Why are stubs used in rmi?
11. Why is the function or role of skeleton in rmi?
12. What is a socket in java networking and rmi?
13. What is the difference between url instance and urlconnection instance?
14. Explain rmi architecture?
Unit 6: Networking:
1. Which package contains classes and interfaces for networking?
2. What are factory methods?
3. Which protocol is for breaking and sending packets to an address across a network?
4. How many ports of TCP/IP are reserved for specific protocols?
TC
5. Which class is used to create servers that listen for either local client or remote client
programs?
6. Which constructor of DatagramSocket class is used to creates a datagram?
7. Which methods are commonly used in ServerSocket class?
&
8. Which classes are used for connection-less socket programming?
9. Which method of URL class represents a URL and it has complete set of methods to
-E
manipulate URL in Java?
10. The client in socket programming must know which information?
11. What does the java.net.InetAddress class represent?
12. TCP, FTP, Telnet, SMTP, POP etc. are examples of ?
13. Which steps occur when establishing a TCP connection between two computers using
OE
sockets?
14. In InetAddress class which method returns the host name of the IP Address?
15. What is full form of DNS?
SC