Which of the following code segment would execute the stored procedure "getPassword()" located in a database server?
Which of the following code segment would execute the stored procedure "getPassword()" located in a database server?
What is the use of the intern() method?
What is the use of the intern() method?
In which memory a String is stored, when we create a string using new operator?
In which memory a String is stored, when we create a string using new operator?
What do you mean by chained exceptions in Java?
What do you mean by chained exceptions in Java?
Which of these classes are the direct subclasses of the Throwable class?
Which of these classes are the direct subclasses of the Throwable class?
Which option is false about the final keyword?
Which option is false about the final keyword?
Which of the following is an immediate subclass of the Panel class?
Which of the following is an immediate subclass of the Panel class?
An interface with no fields or methods is known as a ______.
An interface with no fields or methods is known as a ______.
What do you mean by nameless objects?
What do you mean by nameless objects?
Which package contains the Random class?
Which package contains the Random class?
Which of the following is true about the anonymous inner class?
Which of the following is true about the anonymous inner class?
Which of the following is a reserved keyword in Java?
Which of the following is a reserved keyword in Java?
Which keyword is used for accessing the features of a package?
Which keyword is used for accessing the features of a package?
In java, jar stands for_____.
In java, jar stands for_____.
Given,
- int values[ ] = {1,2,3,4,5,6,7,8,9,10};
- for(int i=0;i< Y; ++i)
- System.out.println(values[i]);
Find the value of value[i]?
Given,
- int values[ ] = {1,2,3,4,5,6,7,8,9,10};
- for(int i=0;i< Y; ++i)
- System.out.println(values[i]);
Find the value of value[i]?
What is meant by the classes and objects that dependents on each other?
What is meant by the classes and objects that dependents on each other?
What will be the output of the following program?
- abstract class MyFirstClass
- {
- abstract num (int a, int b) { }
- }
What will be the output of the following program?
- abstract class MyFirstClass
- {
- abstract num (int a, int b) { }
- }
Which of the following is a mutable class in java?
Which of the following is a mutable class in java?
- ArrayList list = new ArrayList();
What is the initial quantity of the ArrayList list?
- ArrayList list = new ArrayList();
What is the initial quantity of the ArrayList list?
Which of the following is a valid syntax to synchronize the HashMap?
Which of the following is a valid syntax to synchronize the HashMap?
Given that Student is a class, how many reference variables and objects are created by the following code?
- Student studentName, studentId;
- studentName = new Student();
- Student stud_class = new Student();
Given that Student is a class, how many reference variables and objects are created by the following code?
- Student studentName, studentId;
- studentName = new Student();
- Student stud_class = new Student();
Which of the given methods are of Object class?
Which of the given methods are of Object class?
What is the use of \w in regex?
What is the use of \w in regex?
Which of the following is false?
Which of the following is false?
Find the value of A[1] after execution of the following program.
int[] A = {0,2,4,1,3};
for(int i = 0; i < A.length; i++){
A[i] = A[(A[i] + 3) % A.length];
Find the value of A[1] after execution of the following program.
int[] A = {0,2,4,1,3};
for(int i = 0; i < A.length; i++){
A[i] = A[(A[i] + 3) % A.length];
In which process, a local variable has the same name as one of the instance variables?
In which process, a local variable has the same name as one of the instance variables?
Which of the following option leads to the portability and security of Java?
Which of the following option leads to the portability and security of Java?
.
Identify the interface which is used to declare core methods in java?
.
Identify the interface which is used to declare core methods in java?
Which of the following is used to find and fix bugs in the program?
Which of the following is used to find and fix bugs in the program?
How many times will “Interviewbit” be printed.
Int count = 0;
do{
System.out.println(“Interviewbit”);
count++;
} while(count < 10);
How many times will “Interviewbit” be printed.
Int count = 0;
do{
System.out.println(“Interviewbit”);
count++;
} while(count < 10);
Find the output of the following code.
Public class Solution{
Public static void main(String args[]){
Int i;
for(i = 1; i < 6; i++){
if(i > 3) continue;
}
System.out.println(i);
}
Find the output of the following code.
Public class Solution{
Public static void main(String args[]){
Int i;
for(i = 1; i < 6; i++){
if(i > 3) continue;
}
System.out.println(i);
}
Output of Math.floor(3.6)?
Output of Math.floor(3.6)?
Find the output of the following code.
Public class Solution{
Public static void main(String… argos){
Int x = 5;
x * = (3 + 7);
System.out.println(x);
Find the output of the following code.
Public class Solution{
Public static void main(String… argos){
Int x = 5;
x * = (3 + 7);
System.out.println(x);
Find the output of the following code.
if(1 + 1 + 1 + 1 + 1 == 5){
System.out.print(“TRUE”);
}
else{
System.out.print(“FALSE”);
}
Find the output of the following code.
if(1 + 1 + 1 + 1 + 1 == 5){
System.out.print(“TRUE”);
}
else{
System.out.print(“FALSE”);
}
Total constructor string class have?
Total constructor string class have?
How many objects will be created in the following?
String a = new String(“Interviewbit”);
String b = new String(“Interviewbit”);
Strinc c = “Interviewbit”;
String d = “Interviewbit
How many objects will be created in the following?
String a = new String(“Interviewbit”);
String b = new String(“Interviewbit”);
Strinc c = “Interviewbit”;
String d = “Interviewbit
Which of the following is not a Java features?
Which of the following is not a Java features?
The \u0021 article referred to as a
The \u0021 article referred to as a
The \u0021 article referred to as a
The \u0021 article referred to as a
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
Which of the following for loop declaration is not valid?
Which of the following for loop declaration is not valid?
Which of the following creates a List of 3 visible items and multiple selections abled?
Which of the following creates a List of 3 visible items and multiple selections abled?
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
What does the expression float a = 35 / 0 return?
What does the expression float a = 35 / 0 return?
Which of the following is a valid long literal?
Which of the following is a valid long literal?
What is the return type of the hashCode() method in the Object class?
What is the return type of the hashCode() method in the Object class?
Which of the following is a valid declaration of a char?
Which of the following is a valid declaration of a char?
The \u0021 article referred to as a
The \u0021 article referred to as a
Identify the output of the following program.
String str = “abcde”;
System.out.println(str.substring(1, 3));
Identify the output of the following program.
String str = “abcde”;
System.out.println(str.substring(1, 3));