The string is used to storing command-line arguments
Which of the following is not a valid control flow statement in programming?
Classes whose objects are stored in a database table are called?
The variables that are accessible to all methods in a class are called:
What is the term used to describe the wrapping up of data and functions into a single unit?
Which of these exceptions will be thrown if we use null reference for an arithmetic operation?
public class Demo123{
public static void main(String args[]){
String s1= new String("hello");
String s2= new String("Abekus");
System.out.println(s2=s1);
}
}
What will be the output of the following code?
class main
{
public static void main(String[] args)
{
int []a[] = {{1,2}, {3,4,5}, {6,7,8,9}};
int [][]b = a;
System.out.println(x[2][1]+ " "+y[2][1]);
}
}
class test {
public static void main (String[] args) {
int var1=9;
int var2=10;
if(++var1==++var2)
System.out.println(++var2);
else
System.out.println(++var1);
}
}
What is a ResultSet in Java?