Binary literals can be prefixed with what?
Thread.sleep(time in millis)
remove(Object o) : This method removes the first occurrence of the specified element from this list, if it is present.
Which exception show if passing a negative array
What will the value of s2 be after executing the following Java code?
String s1 = "one";
String s2 = s1.concat("two");
Which of these methods is an alternative to getChars() that stores the characters in an array of bytes?
Can we force the garbage collector in Java?
public class output{
public static void main(){
int a=100;
int b=120;
int result=0;
result= a+b;
System.out.println(result);
}
}
what should be the output of this code block ?
public class abekus
{
public static void main(String[] args) {
int arr[] = {
'a',
'b',
'c',
'd',
'e'
};
for (int i = 0; i < 5; i++) {
System.out.print(" " + arr[i]);
}
}
}
Statement 1- begin() is used to obtain an iterator to the start of the collection
Statement 2-IteratorSet() is used to obtain an iterator to the start of the collection
Statement 3- Iterator() is used to obtain an iterator to the start of the collection
Statement 4-Start() is used to obtain an iterator to the start of the collection