-
What method is used to specify a container's layout
The setLayout() method is used to specify a container's layout.
-
-
Which package is always imported by default
The java.lang package is always imported by default.
-
-
-
Which of the following methods defined in Thread class are static?
a) sleep()
b) join()
c) start()
d) yield() -
Polymorphism
Explain polymorphism to your 7 year old nephew.
-
-
Java Include and Import Statement
What is difference between #include and import statement?
-
-
What value does readLine() return when it has reached the end of a file
The readLine() method returns null when it has reached the end of a file.
-
-
What is a transient variable
A transient variable is a variable that may not be serialized.
-
-
-
Java doesnot support Multiline comment
Skill/Topic: AWT & AppletsA) TrueB) False
-
Java - How to convert string to charArray ?
String str="Welcome To GeekInterview.com"
How can convert the above string to charArray without using any buit-in function in java?
Anyone to know the answer.please help me? i am new to learn java.Core Java Question
Will it compile and run?? If No ... please explain?
java
public class Test{
public static void main(String asd[]){
System.out.println(" Test!! ");
}
}
protected class A{
}
private class B extends A{
}
Which of the following classes is used to perform basic console I/O?
A) SystemB) SecurityManagerC) MathD) Runtime
Ans