The Java source code can be created in a Notepad editor.
The Java source code can be created in a Notepad editor.
What should be the execution order, if a class has a method, static block, instance block, and constructor, as shown below?
What should be the execution order, if a class has a method, static block, instance block, and constructor, as shown below?
-
-
-
-
Which of the following is not a Java features?
Which of the following is not a Java features?
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?
When a program class implements an interface, it must provide behavior for
When a program class implements an interface, it must provide behavior for
Prepared Statement object in JDBC used to execute……….. queries.
Prepared Statement object in JDBC used to execute……….. queries.
What will be the output of the following Java program?
What will be the output of the following Java program?
Which environment variable is used to set the java path?
Which environment variable is used to set the java path?
What will be the output of the following Java code?
What will be the output of the following Java code?
What is the extension of java code files?
What is the extension of java code files?
Which of these cannot be used for a variable name in Java?
Which of these cannot be used for a variable name in Java?
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) { }
- }
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?
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]?
On successful compilation a file with the class extension is created.
On successful compilation a file with the class extension is created.
The Java interpreter is used for the execution of the source code
The Java interpreter is used for the execution of the source code
What is the default encoding for an OutputStreamWriter?
What is the default encoding for an OutputStreamWriter?
In character stream I/O, a single read/write operation performs _____.
In character stream I/O, a single read/write operation performs _____.
What is the result of the following program?
- public static synchronized void main(String[] args) throws
- InterruptedException {
- Thread f = new Thread();
- f.start();
- System.out.print("A");
- f.wait(1000);
- System.out.print("B");
- }
What is the result of the following program?
- public static synchronized void main(String[] args) throws
- InterruptedException {
- Thread f = new Thread();
- f.start();
- System.out.print("A");
- f.wait(1000);
- System.out.print("B");
- }
Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?
Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?
If a thread goes to sleep
If a thread goes to sleep
If three threads trying to share a single object at the same time, which condition will arise in this scenario?
If three threads trying to share a single object at the same time, which condition will arise in this scenario?
How many threads can be executed at a time?
How many threads can be executed at a time?
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?
Which one of the following is not a Java feature?
Which one of the following is not a Java feature?
Which component is used to compile, debug and execute the java programs?
Which component is used to compile, debug and execute the java programs?
The compiled java program can run on an
y ………………… plateform having JavaVirtual Machine (JVM) installed on it.
The compiled java program can run on an
y ………………… plateform having JavaVirtual Machine (JVM) installed on it.
The third type of comment is used by a t
ool called ……………… for automaticgeneration of documentation.
The third type of comment is used by a t
ool called ……………… for automaticgeneration of documentation.
System.in.read() is being used, the program must specify the ……………… clause.
System.in.read() is being used, the program must specify the ……………… clause.
. Which exception is thrown when java is out of memory?
. Which exception is thrown when java is out of memory?
What is the extension of compiled java classes?
What is the extension of compiled java classes?
What will be the output of the following Java code snippet?
What will be the output of the following Java code snippet?
What will be the output of the following Java program?
What will be the output of the following Java program?
What is Truncation in Java?
What is Truncation in Java?
What will be the output of the following Java code?
What will be the output of the following Java code?
What will be the output of the following Java program?
What will be the output of the following Java program?
Ingres is a ……………………
Ingres is a ……………………
…………………… of
a remotely accessible object must implement …………….
…………………… of
a remotely accessible object must implement …………….
………………….is the key to ……………………
………………….is the key to ……………………
Which statement is true about Java?
Which statement is true about Java?
Who invented Java Programming?
Who invented Java Programming?
Data input is
Data input is
Which of the following do not represent legal flow control statements?
Which of the following do not represent legal flow control statements?
In java
, …………. can only test
for equal
ity, whereas ………… can evaluate any type of
the Boolean expression.
In java
, …………. can only test
for equal
ity, whereas ………… can evaluate any type of
the Boolean expression.
The concept of multiple inheritance is implemented in Java by
The concept of multiple inheritance is implemented in Java by
Which of the following control expressions are valid for an if statement?
Which of the following control expressions are valid for an if statement?
A package is a collection of
A package is a collection of
The ……………… and ……………….. classes are abstract classes that support reading
and writing of byte streams.
The ……………… and ……………….. classes are abstract classes that support reading
and writing of byte streams.
The class at the top of exception class hierarchy is ……………………..
The class at the top of exception class hierarchy is ……………………..
Which of the following is a type of polymorphism in Java Programming?
Which of the following is a type of polymorphism in Java Programming?