Predict the output of the following Java code.
What will be the output of the following Java program?
After resizing, By what percentage has the size of the ArrayList increased?
What is the value of "d" after this line of code has been executed?
double d = Math.round(2.5 + Math.random());
Which one is wrong from the thread lifecycle point of view.
1. new to runnable
2. runnable to non-runnable
3. new to running
4.init to new
What is the term used to describe a relationship where an object has its own lifecycle and a child object cannot belong to another parent object?
______ supports all languages in the world. Java supports ______ values.
______ characters are represented by 16 bits and its character range is 065,535.
The blank spaces can be filled with
Predict the output of the following Java code.
import java.util.StringTokenizer;
public class Simple{
public static void main(String args[]){
StringTokenizer st = new StringTokenizer("batman is the best ever"," ");
while (st.hasMoreTokens()) {
System.out.println(st.nextToken());
}
}
}