Statement
try{
}
Find the output of the following code:
Which of these interfaces extends the DataOutput interface?
How are these types of comments in Java pronounced: /**...*/
Which method declaration is valid within an interface definition in Java?
Which of these String class methods is used to check whether a given string starts with a particular string literal?
If any expression containing a double, int, float, long variable, then the whole expression will be promoted into which of these data types?
class test{
public static void main (String[] args) {
System.out.println('a'+'b');
}
}
The executeQuery()
method can be used:
Predict the output of the following Java code.
class Abekus {
private int i;
public static void main(String args[])
{
Abekus obj = new Abekus(17);
}
public Abekus(int i)
{
System.out.println("i = " + i);
}
public void Abekus(int i)
{
System.out.println(i);
}
}