What is the key word used in java to create an object
this
new
sync
obj
Find the reserved word in java from the following
off
on
new
none of the above
what is the correct syntax for java main method from the below
public void main(String[] args)
public static void main(string[] args)
public static void main()
public static void main(String args[])
What is the output of the following
StringBuffer sb1 = new StringBuffer('Amit');
StringBuffer sb2= new StringBuffer('Amit');
String ss1 = 'Krishna';
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
System.out.println('Poddar'.substring(3));
false
false
false
dar
false
true
false
Poddar
true
true
false
dar
Compiler Error
Which one in the following does not extend java.lang.Number
Integer
Boolean
Long
Short
State TRUE or FALSE
A null reference may be used to access a static variable or method
TRUE
FALSE
State TRUE or FALSE
Native methods can be 'abstract'
TRUE
FALSE
Which of the following is not a Java keywords
main
transient
integer
try
Which of the following will compiling without warning or error?
float f='1.3';
char c='a';
boolean b=null;
int i=10;
In Java, an int variable occupies how many BYTES
1
4
2
5