-
-
________ enhance performance and functionality in various programming languages
Skill/Topic: AWT & AppletsA) threadsB) constantsC) variablesD) none of the above
-
-
-
What is a native method
A native method is a method that is implemented in a language other than Java.
-
Can we use final keyword before constructor?
Is it possible to define final keyword before constructor.if yes then describe?
-
-
Abstract class can be declared as final
Skill/Topic: InheritanceA) TrueB) FalseExplanation: An abstract class may not be declared as final.
-
____________ is a highly optimized set of instructions designed to be executed by the Java run-time system
A) Byte CodeB) FirewallC) Tetra CodeD) View Code
-
When a thread is created and started, what is its initial state
A thread is in the ready state after it has been created and started.
-
How to convert .class to .java?
How to convert or achieve the program from .class file??
-
Objects are sometimes referred to as __________ of a class
A) InhertienceB) InstancesC) InterfacesD) Inhibitors
-
-
-
__________ code segments must be implemented for an event handler.
Skill/Topic: AWT & AppletsA) OneB) TwoC) ThreeD) Four
-
-
What is the difference between static and non-static variables
A static variable is associated with the class as a whole rather than with specific instancesof a class. Non-static variables take on unique values with each object instance.
-
-
-
Predict the output of the given code:
javapublic class Test {
private static String msg = "HCL ";
static{
Thread t = new Thread(new Runnable(){
public void run(){
msg = "Technologies ";
}
});
t.start();
}
public static void main(String[] args){
System.out.print(msg);
}}
a) Compiles and prints HCL
b) Compiles and prints Technologies
c) Compiles and...
Java Interview Questions
Ans