-
Which containers use a border Layout as their default layout
The window, Frame and Dialog classes use a border layout as their default layout.
-
-
-
-
What are the main differences between Java and C++?
Everything is an object in Java (Single root hierarchy as everything gets derived from java.lang.Object). Java does not have all the complicated aspects of C++ ( For ex: Pointers, templates, unions, operator overloading, structures etc..) The Java language promoters initially said "No pointers!", but when many programmers questioned how you can work without pointers, the promoters began saying "Restricted...
-
What is the priority of the Garbage collector thread of jdk.?
A) low-priorityB) highest priorityC) medium priorityD) decided at runtime
-
-
How is Java considered tamper free?
I read in the properties of java that it is secured as it is tamper free. I would like to know what is tamper free and how it applies to Java?
-
-
-
-
What will be the result of compiling and executing the code listed below?
java
public class Finder {
public static void main(String[] args){
System.out.println(X.Y.Z);
}}
class X{
static class Y{ static String Z ="Apple"; }
static W Y = new W();
}
class W{ String Z = "Orange";}
a) Apple
b) Orange
c) Compile time Error
d) Runtime Exception is thrown -
What is the difference between a break statement and a continue statement
A break statement results in the termination of the statement to which it applies (switch,for, do, or while). A continue statement is used to end the current loop iteration andreturn control to the loop statement.
-
-
_________ is a feature that allows one interface to be used for a general class of actions.
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
-
Coding question
Given the age of 10 couples(husband and wife), print Number of years of age difference for all the 10 people Input Specification First 10 inputs contain the ages of all husbands And the next 10 are the ages of all wives Output Specification Output should be exactly 10 lines giving the number of years of the age difference between them. Note: output is a positive integer Sample Input 50 40 53 24 78...
When does the compiler supply a default constructor for a class
The compiler supplies a default constructor for a class if no other constructors areprovided.
Single Thread and Multiple Thread
What is difference between Single Thread and Multiple Thread?
Explain Single Thread Model Vs. Multi thread model. Support your answer with practical example?The concept of polymorphism is often expressed by the phrase
Skill/Topic: AWT & AppletsA) One interface, multiple methodsB) Multiple interface, one MethodC) Multiple interface, Multiple methodD) One interface, One method
Ans