NEW
Font size
WorksheetsCollections, JDBC/RDBMS
Total questions: 10
Worksheet time: 13mins
Predict the output:
Compiletime Error at line 6
Compiletime Error at line 7 : Unhandled IOException
accepts string and displays on the screen
None of the above
Predict the output:
Compile time error
Run time error
Java
Unix
Java
Unix
Oracle
C++
Perl
Predict the output:
Hello from Parent
Hello from Child
Compilation Error
None of the above
Predict the output:
Compile Time Error : Array size is negative
Runtime Exception : Array size is negative
0
-0
Predict the output
Kucu Kucu
I speak
compile time error
runtime exception
Predict the output:
Java
PJP
Compile time error
Runtime Exception : IndexOutOfBoundsException
None of the above
Predict the output:
10
11
10
10
11
11
11
10
What is the return type of setter method?
void
It depends on the instance variable's data type whose value we are trying to retrieve.
Which of the below options is correct to load the Oracle JDBC driver?
Class.forName("oracle.jdbc.driver.OracleDBDriver");
Class.forName("Oracle.Jdbc.Driver.OracleDriver");
Class.forName("jdbc.oracle.driver.OracleDriver");
Class.forName("oracle.jdbc.driver.OracleDriver");
Which of the below queries is correct to display the Employee details such as empno, ename, sal from emp table whose empno contains 77 in it?
select empno,ename,sal from emp where empno is 77;
select empno,ename,sal from emp where empno like '_77%';
select empno,ename,sal from emp where empno like '%77%';
select empno,ename,sal from emp where empno like '_77_';
