Home / Programming MCQs / JAVA MCQs / Question
J
Q. What is the output for the below code?
public class Test{ int _$; int $7; int do; public static void main(String argv[]){ Test test = new Test(); test.$7=7; test.do=9; System.out.println(test.$7); System.out.println(test.do); System.out.println(test._$); } }
$7 is valid identifier. Identifiers must start with a letter, a currency character ($), or underscore ( _ ). Identifiers cannot start with a number. You can't use a Java keyword as an identifier. do is a Java keyword.
You must be Logged in to update hint/solution
BLOB, CLOB, ARRAY and REF type columns can be updated in
In HTTP Request method Get request is secured because data is exposed in URL bar
Which of the following represent legal flow control statements?
What will be the output of the following code
Which of these operators can skip evaluating right hand operand?.
What is the default value of an element of Object type array?
If there is no constructor in a class, compiler automatically creates a default constructor.
Which of these is not a correct statement?
Which version of Java introduced Hexadecimal floating point numbers?
Discusssion
Login to discuss.