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
In java a _______ is a sequence of characters.
Which methods are used to bind the objects on HttpSession instance andgetthe objects?
Which of those isn’t an interface within the Collections Framework?
Which of these can be used to fully abstract a class from its implementation?
Who is known as father of Java Programming Language?
What is the output of the following code snippet?
For storing a value, double uses
An enum variable in java can take ___ as the assigned value in Java.
Discusssion
Login to discuss.