Advance Java Programming Prilim Exam

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By RSH_AJP
R
RSH_AJP
Community Contributor
Quizzes Created: 1 | Total Attempts: 973
| Attempts: 973 | Questions: 64
Please wait...
Question 1 / 64
0 %
0/100
Score 0/100
1. What is Purpose of Jtree ?

Explanation

The purpose of a JTree is to present a hierarchical view of elements. It is used to display a structure where each element has a parent and can have one or more children. This allows for organizing and visualizing data in a tree-like structure, making it easier to navigate and understand relationships between different elements.

Submit
Please wait...
About This Quiz
Advance Java Programming Prilim Exam - Quiz

This Advanced Java Programming prelim exam assesses knowledge in Java event handling. It includes questions on packages, methods for registering listeners, and identifying event types, crucial for developing... see moreinteractive Java applications. see less

2. In given code ,fill the required methodsimport java.io.*;   import java.net.*;   public class InetDemo{   public static void main(String[] args){   try{   InetAddress ip=InetAddress.getByName("www.google.com");      System.out.println("Host Name: "+_________________);   System.out.println("IP Address: "+__________________);   }catch(Exception e){System.out.println(e);}   }   }    

Explanation

The correct answer is "ip.getHostName(), ip.getHostAddress()". This is because the code is trying to print the host name and IP address of "www.google.com". The method "ip.getHostName()" returns the host name, which is "www.google.com", and the method "ip.getHostAddress()" returns the IP address associated with that host, which is the IP address of Google's server. Therefore, using both methods will give us both the host name and IP address of "www.google.com".

Submit
3. Which of these are integer constants defined in ActionEvent class? 

Explanation

All of the mentioned options (ALT_MASK, CTRL_MASK, SHIFT_MASK) are integer constants defined in the ActionEvent class. These constants represent modifier keys that can be used in combination with other keys to perform specific actions.

Submit
4. In event handling, A listener is a object that is notified when an event occurs.

Explanation

In event handling, a listener is an object that is notified when an event occurs. This means that when an event, such as a button click or a key press, happens, the listener object is informed and can perform some action in response to that event. This allows for the separation of event handling logic from the rest of the program, making it easier to manage and maintain. Therefore, the given answer "True" is correct.

Submit
5. Which of these method of DatagramPacket is used to find the length of byte array?

Explanation

The method "getLength()" is used to find the length of the byte array in a DatagramPacket.

Submit
6. Fill in blanks import java.sql.*; class InsertPrepared{ public static void main(String args[]){ try{ Class.____________("sun.jdbc.odbc._______________________"); Connection con=DriverManager.getConnection("jdbc:odbc:employyedsn");     PreparedStatement stmt=______________________("insert into Emp values(?,?)"); stmt._____________(1,101); stmt.setString(2,"Ratan"); int i=stmt._________________ System.out.println(i+" records inserted"); con.close(); }catch(Exception e){ System.out.println(e);} } }  

Explanation

The correct answer is forName,JdbcOdbcDriver, con.prepareStatement,setInt, executeUpdate(). In this code, the Class.forName() method is used to load the JDBC-ODBC driver. The DriverManager.getConnection() method is used to establish a connection to the database. The con.prepareStatement() method is used to create a PreparedStatement object for executing SQL statements. The stmt.setInt() method is used to set the value of the first parameter in the SQL statement. The stmt.executeUpdate() method is used to execute the SQL statement and returns the number of rows affected.

Submit
7. Which of these packages contains all the classes and methods required for even handling in Java?

Explanation

The package "java.awt.event" contains all the classes and methods required for event handling in Java. This package provides classes and interfaces for handling events such as mouse clicks, keyboard inputs, and window events. It includes classes like ActionListener, MouseEvent, KeyEvent, and WindowListener, which are essential for implementing event-driven programming in Java. Therefore, "java.awt.event" is the correct answer as it specifically focuses on event handling in Java.

Submit
8. Scrollable ResultSet have  this constants

Explanation

The correct answer is "All of the above" because a Scrollable ResultSet in Java has three constants: TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, and TYPE_SCROLL_SENSITIVE. These constants represent different types of scrollable result sets that can be used to navigate through the data in a ResultSet object. Therefore, all three options are valid constants for a Scrollable ResultSet.

Submit
9. Which of these methods are used to register a mouse motion listener?

Explanation

The correct answer is addMouseMotionListener(). This method is used to register a mouse motion listener in Java. It allows the program to detect and respond to mouse motion events, such as when the mouse is moved or dragged. By using this method, the program can add a listener that will be notified whenever there is a mouse motion event, and perform the desired actions accordingly.

Submit
10. The URLConnection class can be used to read and write data to the specified resource referred by the URL?

Explanation

The URLConnection class in Java provides a way to establish a connection to a specified resource referred to by a URL. It allows reading and writing data to and from the resource. Therefore, the statement that the URLConnection class can be used to read and write data to the specified resource referred by the URL is true.

Submit
11. TCP,FTP,Telnet,SMTP,POP etc. are examples of ? 

Explanation

TCP, FTP, Telnet, SMTP, POP, etc. are examples of protocols. A protocol is a set of rules and guidelines that govern the communication between devices in a network. Each of these protocols serves a specific purpose. TCP (Transmission Control Protocol) is responsible for establishing a reliable connection between devices. FTP (File Transfer Protocol) is used for transferring files between computers. Telnet is a protocol that allows remote login to a computer. SMTP (Simple Mail Transfer Protocol) is used for sending emails, and POP (Post Office Protocol) is used for retrieving emails from a mail server.

Submit
12. UDP you just send packets of data (datagrams) to some IP address on the network

Explanation

The given statement is true. UDP (User Datagram Protocol) is a connectionless protocol in which data is sent in the form of packets called datagrams. These datagrams are sent to a specific IP address on the network without establishing a connection beforehand. Unlike TCP, UDP does not guarantee delivery or order of the packets, making it a faster but less reliable protocol for transmitting data.

Submit
13. What is output of following program

Explanation

The output of the program will display the Internet address of the host.

Submit
14. Identify missing statements in bellow mention codeimport java.sql.*;  class FetchRecord{  public static void main(String args[])throws Exception{      _____________________("sun.jdbc.odbc.JdbcOdbcDriver");      __________________con=DriverManager.getConnection("jdbc:odbc:mydsn1);  Statement stmt=con.createStatement(); int result =__________________("delete from emp where id=33");      System.out.println(result+" records affected");      ______________________    }} 

Explanation

The correct answer is "Class.forName,Connection, stmt.executeUpdate , con.close();". This answer is correct because it follows the correct sequence of statements to execute a SQL query. The first statement "Class.forName" is used to load the JDBC driver. The second statement "Connection" establishes a connection to the database. The third statement "stmt.executeUpdate" executes the SQL query to delete records from the "emp" table where the id is 33. The fourth statement "con.close()" closes the connection to the database.

Submit
15. Different types of JDBC drivers

Explanation

The correct answer is "all of the above." This is because the question is asking about the different types of JDBC drivers, and all four options listed (JDBC-ODBC bridge driver, Native-API driver, Network Protocol driver, and Native protocol) are valid types of JDBC drivers. Each type of driver has its own characteristics and uses, but all of them are considered JDBC drivers.

Submit
16. Which of the method used to to get content type of this file?

Explanation

The correct answer is "getContentType()". This method is used to retrieve the content type of a file. It is likely a method provided by a programming language or framework that allows developers to access the metadata associated with a file, such as its content type.

Submit
17. Which of these class is used to create servers that listen for either local or remote clientprograms?

Explanation

The ServerSocket class is used to create servers that listen for either local or remote client programs. This class provides a mechanism for the server to listen for incoming client connections and accept them. Once a client connection is accepted, the server can then communicate with the client using input and output streams. Therefore, the ServerSocket class is the correct choice for creating servers that listen for client programs.

Submit
18. What is the purpose of Jtable?

Explanation

The purpose of JTable is to display rows and columns of data.

Submit
19. Write a comment on following method Statement state = con.createStatement(); 

Explanation

The given method "Statement state = con.createStatement();" creates a new Statement object and assigns it to the variable "state". The method "createStatement()" is called on the "con" object, which is likely a connection to a database. This method is used to create a new Statement object that can be used to execute SQL queries on the database. The created Statement object is then returned as the return value of the method.

Submit
20. The ................................ method executes a simple query and returns a single Result Set object.

Explanation

The executeQuery() method is the correct answer because it is used to execute a simple query and retrieve a single Result Set object. This method is typically used when you want to retrieve data from a database, such as selecting records from a table. It returns a Result Set object that contains the data fetched from the database, which can then be processed further in the code.

Submit
21. Which method is used to display icon on a component?    

Explanation

The setIcon(ImageIcon i) method is used to display an icon on a component.

Submit
22. The ............................. package contains classes that help in connecting to a database, sending SQL statements to the database, and processing the query results. 

Explanation

The java.sql package contains classes that help in connecting to a database, sending SQL statements to the database, and processing the query results. This package provides the necessary tools and functionality for interacting with a database in Java applications. The classes in this package allow developers to establish database connections, execute SQL queries, retrieve and manipulate data, and handle database transactions. This package is essential for any Java application that needs to work with a database.

Submit
23. Identify components used in below output

Explanation

The correct answer is Label, TextField, Button. This is because the output includes a label, a text field, and a button. These components are commonly used in graphical user interfaces to display text, allow user input, and trigger actions respectively. The other options mentioned, such as Applet and Grid Layout, are not components but rather layout managers that can be used to arrange components in a specific way.

Submit
24. Which of these exception is thrown by URL class's constructors?

Explanation

The correct answer is MalformedURLException. The URL class's constructors throw this exception when a malformed URL is encountered. This means that the URL provided is not in the correct format, such as missing the protocol or having invalid characters. The MalformedURLException allows the programmer to handle this specific error and take appropriate action, such as displaying an error message to the user or logging the exception for debugging purposes.

Submit
25. Identify missing statements in given program

Explanation

The missing statement in the given program is actionPerformed(ActionEvent ae). This is because the other three methods (adjustmentPerformed, itemStateChanged with ItemEvent, and itemStateChanged with ActionEvent) are already declared and mentioned in the program. However, actionPerformed with ActionEvent is missing, indicating that it needs to be included in the program.

Submit
26. ____________________to call stored procedures from within a JDBC application

Explanation

A CallableStatement is used to call stored procedures from within a JDBC application. It provides a way to execute SQL statements that may contain input and output parameters. Unlike a regular Statement or PreparedStatement, a CallableStatement is specifically designed for executing stored procedures. It allows the application to pass input parameters to the stored procedure and retrieve output parameters or result sets returned by the stored procedure. Therefore, the correct answer is CallableStatement.

Submit
27. Which of these class is used to encapsulate IP address and DNS?

Explanation

InetAddress is the correct answer because it is a class in Java that is used to encapsulate both IP addresses and DNS names. It provides methods to retrieve and manipulate IP addresses and perform DNS lookups. This class is commonly used in networking applications to identify and communicate with remote hosts using their IP addresses or DNS names.

Submit
28. Select appropriate code for the given output 

Explanation

not-available-via-ai

Submit
29. Which of following statements loads the JDBC-ODBC driver?

Explanation

The correct answer is Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"). This statement is used to load the JDBC-ODBC driver by specifying the fully qualified name of the driver class as a string parameter. The Class.forName method is used to dynamically load the driver class at runtime, and in this case, it loads the JDBC-ODBC driver.

Submit
30. Select the statement to add in program to get correct output

Explanation

The statement "s.executeUpdate()" should be added in the program to get the correct output. This statement is used to execute the SQL statement in the program and update the database. It is typically used for statements that modify the data in the database, such as INSERT, UPDATE, or DELETE statements.

Submit
31. Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value? 

Explanation

When the button at the end of the scroll bar is clicked to increase its value, the constant value that will change is UNIT_INCREMENT. This constant represents the amount by which the scroll bar value will increase when the button is clicked.

Submit
32. What is a listener in context to event handling?

Explanation

A listener is an object that is notified when an event occurs. This means that when a specific event takes place, the listener object is informed and can perform certain actions or execute specific code in response to that event. The listener acts as a callback mechanism, allowing the program to respond dynamically to events as they happen.

Submit
33. Which of these methods can be used to determine the type of adjustment event? 

Explanation

The method getAdjustmentType() can be used to determine the type of adjustment event. This method specifically retrieves the adjustment type associated with the event. The other methods getType(), getEventType(), and getEventObjectType() may retrieve different information about the event, but they do not specifically provide the adjustment type. Therefore, getAdjustmentType() is the correct method to use in order to determine the type of adjustment event.

Submit
34.  which AWT component is used to create popup list of string items from which only one can be selected at a time. 

Explanation

The Choice component in AWT is used to create a popup list of string items from which only one can be selected at a time. It allows the user to select a single item from a list of options provided. This component is commonly used in forms or menus where the user needs to make a single selection from a predefined set of options.

Submit
35. Which is the passive control  

Explanation

The correct answer is Label because a label is a passive control that is used to display text or information. It does not have any interactive functionality or control over user input. The other options, such as Checkbox, Scrollbar, and Button, are all active controls that allow the user to interact with them and perform specific actions.

Submit
36. The ........................ object allows you to execute parametrized queries.

Explanation

The PreparedStatement object allows you to execute parametrized queries. It is a precompiled SQL statement that can accept input parameters, which are placeholders for values that will be supplied at runtime. This allows for efficient execution of repeated queries with different parameter values, as the statement is only compiled once and can be reused. The PreparedStatement also provides protection against SQL injection attacks by automatically escaping special characters in the parameter values.

Submit
37. What is the output of this program?
    import java.net.*; class networking { public static void main(String[] args) throws MalformedURLException { URL obj = new URL("https://www.sanfoundry.com/javamcq"); System.out.print(obj.getPort()); } }

    Explanation

    The program creates a new URL object with the given URL "http://www.sanfoundry.com/javamcq". The getPort() method is then called on this object. Since the URL does not specify a port number, the getPort() method returns -1.

    Submit
    38. What is output of following program

    Explanation

    The given program outputs "http://www.google.com" because it is the only entry in the program that starts with "http://" and ends with ".com". The other entries do not meet this criteria, so they are not included in the output.

    Submit
    39.  import java.sql.*;  class FetchRecord{  public static void main(String args[])throws Exception{      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");      Connection con=DriverManager.getConnection("jdbc:odbc:mydsn1);   Statement stmt=con.createStatement();ResultSet rs=stmt.executeQuery("select * from emp");  rs.absolute(3);   System.out.println("FName="+rs.getString(1)+"LName="+rs.getString(2));      con.close();   }}  

    Explanation

    The given code connects to a database using JDBC and executes a select query to fetch all records from the "emp" table. After executing the query, the code uses the "rs.absolute(3)" method to move the cursor to the third row of the result set. Then, it prints the values of the first and second columns (FName and LName) from that row. Therefore, the correct answer is "print only row 3 value and print FName, LName from emp table."

    Submit
    40. Which of these methods can be used to determine the type of event? 

    Explanation

    The method getID() can be used to determine the type of event. This is because the ID of an event can provide information about the type or category of the event. By calling the getID() method, we can retrieve the ID associated with the event and use it to identify the type of event that occurred.

    Submit
    41. Which methods are commonly used in ServerSocket class?

    Explanation

    The correct answer is "public Socket accept()". This method is commonly used in the ServerSocket class to accept incoming client connections. It waits until a client connection is made and returns a Socket object representing that connection. This allows the server to communicate with the client using the returned Socket object. The other methods mentioned, getOutputStream() and close(), are not commonly used in the ServerSocket class.

    Submit
    42. Which of these class is necessary to implement datagrams?

    Explanation

    Both the DatagramPacket and DatagramSocket classes are necessary to implement datagrams. The DatagramPacket class represents a datagram packet, which is essentially a container for a message that can be sent over a network. The DatagramSocket class, on the other hand, is responsible for creating a socket that can send and receive datagram packets. Therefore, to implement datagrams, both classes are required.

    Submit
    43. Which of these is superclass of all Adapter classes? 

    Explanation

    The superclass of all Adapter classes is Component. The Applet class is a subclass of the Component class, so it is not the superclass. Event and InputEvent are not related to the Adapter classes.

    Submit
    44. To delete the records from database, use the following sequence of the part of coding: 

    Explanation

    The correct answer is the first option: String b = "delete from emp where ID=1"; PreparedStatement ps=con.prepareStatement(b);ps.executeUpdate(); This sequence of code uses the correct syntax to delete records from the "emp" table where the ID is equal to 1. The PreparedStatement is used to execute the SQL statement and the executeUpdate() method is used to perform the actual deletion.

    Submit
    45. What is JDBC?

    Explanation

    JDBC stands for Java Database Connectivity, which is a Java API that allows Java programs to interact with databases. It provides a set of classes and methods for executing SQL statements, connecting to databases, and retrieving and manipulating data. The correct answer is "Java API" because JDBC is an API specifically designed for database connectivity in Java.

    Submit
    46.

    Explanation

    not-available-via-ai

    Submit
    47. What is the default length of the queue in following constructor of Serversocket? ServerSocket(int portno)

    Explanation

    The default length of the queue in the ServerSocket constructor with the parameter int portno is 50. This means that the ServerSocket can accept up to 50 incoming connections before it starts rejecting new connections.

    Submit
    48. Identify the error in given program

    Explanation

    The error in the given program is in the statement where the JTable is created.

    Submit
    49. select correct method of statement interface

    Explanation

    The correct method of the statement interface is "public ResultSet executeQuery(String sql) throws SQLException". This method takes a string parameter representing the SQL query and returns a ResultSet object. It also throws a SQLException if there is an error executing the query.

    Submit
    50. How many types of controls does AWT supports these controls are subclasses of component?

    Explanation

    AWT (Abstract Window Toolkit) supports 7 types of controls, which are subclasses of the Component class. These controls include Button, Checkbox, Choice, Label, List, TextArea, and TextField. Each control serves a different purpose and allows for user interaction in a graphical user interface.

    Submit
    51. ----------------------is a superclass for push button,checkboxes and radiobutton

    Explanation

    AbstractButton is the correct answer because it is a superclass for push button, checkboxes, and radio buttons. This means that push button, checkboxes, and radio buttons inherit properties and behaviors from the AbstractButton class. The AbstractButton class provides common functionality for these types of buttons, such as handling user interactions and displaying visual states. Therefore, AbstractButton serves as a higher-level class that encapsulates the shared functionality for these specific types of buttons.

    Submit
    52.  identify the components used in given output:

    Explanation

    The given output includes three components: Panel, TabbedPane, and List. These components are used to create a graphical user interface. The Panel component is a container that can hold other components, while the TabbedPane component allows for the creation of multiple tabs, each containing different content. The List component is used to display a list of items that can be selected by the user.

    Submit
    53. What is the output of this program? import java.net.*; class networking { public static void main(String[] args) throws Exception { URL obj = new URL("https://www.sanfoundry.com/javamcq"); URLConnection obj1 = obj.openConnection(); System.out.print(obj1.getContentType()); } }

    Explanation

    The program uses the URL class to create a URL object with the specified URL "http://www.sanfoundry.com/javamcq". Then, it uses the openConnection() method of the URLConnection class to establish a connection to the URL. Finally, it uses the getContentType() method of the URLConnection class to retrieve the content type of the URL. In this case, the content type is "text/html", which is the correct answer.

    Submit
    54. Select proper output?

    Explanation

    The correct answer is "output1" because it is one of the options provided and there is no additional information given to suggest that any of the other options would be the correct output.

    Submit
    55. return value of given method is:absolute(int row)

    Explanation

    The return value of the given method is either true or false.

    Submit
    56. Identify correction in given program to get correct output?

    Explanation

    The correct answer is "Error in main()" because the main() function is the entry point of the program, and any errors in this function can cause the program to fail or produce incorrect output. If there is an error in the main() function, it can affect the execution of the entire program and prevent it from running correctly.

    Submit
    57. What is the output of following program

    Explanation

    The correct answer is "All IP addresses of www.google.com". This is because the program is specifically designed to retrieve and display all the IP addresses associated with the domain name "www.google.com". The program does not mention anything about displaying the internet protocols or any other information, so those options are not applicable.

    Submit
    58. How can you execute DML statements (i.e. insert, delete, update) in the database?

    Explanation

    DML statements (insert, delete, update) can be executed in the database by invoking the execute(...) or executeUpdate(...) method of a normal Statement object or a sub-interface object thereof. This method allows the execution of SQL statements and returns a boolean value indicating the success or failure of the execution.

    Submit
    59. JLabel(String s,Icon i,int align) the align argument can be

    Explanation

    The align argument in the JLabel constructor can take values such as LEFT, RIGHT, CENTER, LEADING, and TRAILING. These values determine the alignment of the text and icon within the label.

    Submit
    60. JDBC provides two meta-data interfaces

    Explanation

    JDBC provides two meta-data interfaces, ResultSetMetaData and DatabaseMetaData. ResultSetMetaData is used to retrieve meta-data about the columns in a ResultSet, such as the column names, types, and sizes. It provides information about the structure of the result set. On the other hand, DatabaseMetaData is used to retrieve meta-data about the database itself, such as the supported features, tables, columns, and indexes. It provides information about the database schema and its capabilities. Both interfaces are important for accessing and understanding the meta-data of a database using JDBC.

    Submit
    61. The JDBC-ODBC Bridge driver translates the JDBC API to the ODBC API and used with .......

    Explanation

    The given correct answer is "ODBC driver". The JDBC-ODBC Bridge driver is used to translate the JDBC API (Application Programming Interface) to the ODBC (Open Database Connectivity) API. This allows Java applications to connect to databases using the ODBC driver. Therefore, the correct answer is the ODBC driver.

    Submit
    62. Which one of the following will not get the data from first column from ResultSet rs ,returned from following SQL statement :select Name,Rank ,serialNo from employee

    Explanation

    The correct answer is rs.getString(0). This is because the column indexing in ResultSet starts from 1, not 0. Therefore, calling rs.getString(0) will result in an error and will not retrieve any data from the first column of the ResultSet.

    Submit
    63. Type1 Driver JDBC/ODBC Bridge is

    Explanation

    The Type1 Driver JDBC/ODBC Bridge is an example of a 3-tier architecture. In this architecture, the client application communicates with a middle tier, which then interacts with the database. The Type1 Driver acts as a bridge between the JDBC API (which is used by the client application) and the ODBC API (which is used by the middle tier). This allows the client application to access the database through the middle tier, providing a more modular and scalable approach to database connectivity.

    Submit
    64. What is output of the given code?

    Explanation

    The given code is expected to display only the button "Cancel". This can be inferred from the answer choice "Only button Cancel is displayed." The code likely contains a statement or condition that hides or removes the button "OK" from being displayed.

    Submit
    View My Results

    Quiz Review Timeline (Updated): Mar 22, 2023 +

    Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

    • Current Version
    • Mar 22, 2023
      Quiz Edited by
      ProProfs Editorial Team
    • Feb 23, 2017
      Quiz Created by
      RSH_AJP
    Cancel
    • All
      All (64)
    • Unanswered
      Unanswered ()
    • Answered
      Answered ()
    What is Purpose of Jtree ?
    In given code ,fill the required...
    Which of these are integer constants defined in ActionEvent...
    In event handling, A listener is a object that is notified when an...
    Which of these method of DatagramPacket is used to find the length of...
    Fill in blanks import java.sql.*; class InsertPrepared{ public...
    Which of these packages contains all the classes and methods required...
    Scrollable ResultSet have  this constants
    Which of these methods are used to register a mouse motion listener?
    The URLConnection class can be used to read and write data to the...
    TCP,FTP,Telnet,SMTP,POP etc. are examples of ? 
    UDP you just send packets of data (datagrams) to some IP address on...
    What is output of following program
    Identify missing statements in bellow mention codeimport java.sql.*;...
    Different types of JDBC drivers
    Which of the method used to to get content type of this file?
    Which of these class is used to create servers that listen for either...
    What is the purpose of Jtable?
    Write a comment on following method Statement state =...
    The ................................ method executes a simple query...
    Which method is used to display icon on a component?    
    The ............................. package contains classes that help...
    Identify components used in below output
    Which of these exception is thrown by URL class's constructors?
    Identify missing statements in given program
    ____________________to call stored procedures from within a JDBC...
    Which of these class is used to encapsulate IP address and DNS?
    Select appropriate code for the given output 
    Which of following statements loads the JDBC-ODBC driver?
    Select the statement to add in program to get correct output
    Which of these constant value will change when the button at the end...
    What is a listener in context to event handling?
    Which of these methods can be used to determine the type of adjustment...
     which AWT component is used to create popup list of string...
    Which is the passive control  
    The ........................ object allows you to execute parametrized...
    What is the output of this program? import java.net.*; class...
    What is output of following program
     import java.sql.*;  class FetchRecord{  public static...
    Which of these methods can be used to determine the type of...
    Which methods are commonly used in ServerSocket class?
    Which of these class is necessary to implement datagrams?
    Which of these is superclass of all Adapter classes? 
    To delete the records from database, use the following sequence of the...
    What is JDBC?
    What is the default length of the queue in following constructor of...
    Identify the error in given program
    Select correct method of statement interface
    How many types of controls does AWT supports these controls are...
    ----------------------is a superclass for push button,checkboxes and...
     identify the components used in given output:
    What is the output of this program? import java.net.*; class...
    Select proper output?
    Return value of given method is:absolute(int row)
    Identify correction in given program to get correct output?
    What is the output of following program
    How can you execute DML statements (i.e. insert, delete, update) in...
    JLabel(String s,Icon i,int align) the align argument can be
    JDBC provides two meta-data interfaces
    The JDBC-ODBC Bridge driver translates the JDBC API to the ODBC API...
    Which one of the following will not get the data from first column...
    Type1 Driver JDBC/ODBC Bridge is
    What is output of the given code?
    Alert!

    Advertisement