javap java.____.StringBuilder
Which of these is a selection statement in Java?
Which of this class is used to make a thread?
Encapsulation is acheived by combing ________ into a class .
The array is a class which uses String as a key to store the value in the object
Which file is used to specify the packaging cycle?
Which Java collection interface provides the capability to store objects using a key-value pair?
what should be the output of this code block?
public class abekus {
public static void main(String[] args) {
System.out.print(2 > 4 ? "Hi" : "abekus");
}
}
}
What is the value returned by the compareTo()
method if the invoking string is lexicographically less than the string compared?
public class Demo123{
public static void main(String args[]){
String s1= new String("hello");
String s2= new String("hello");
System.out.println(s1==s2);
System.out.println(s1.equals(s2));
}
}