its my blog...!
For 1st Question:(2) is wrong because the default value for a String (and any other object reference) is null, with no quotes.(6) is wrong because the default value for boolean elements is false.
For Second Question:Option A is wrong because the keyword for the primitive int starts with a lowercase i.Option C is wrong because "virtual" is a keyword in C++, but not Java.Option D is wrong because "constant" is not a keyword. Constants in Java are marked static and final.Option E is wrong because "include" is a keyword in C, but not in Java
For 1st Question:
ReplyDelete(2) is wrong because the default value for a String (and any other object reference) is null, with no quotes.
(6) is wrong because the default value for boolean elements is false.
For Second Question:
ReplyDeleteOption A is wrong because the keyword for the primitive int starts with a lowercase i.
Option C is wrong because "virtual" is a keyword in C++, but not Java.
Option D is wrong because "constant" is not a keyword. Constants in Java are marked static and final.
Option E is wrong because "include" is a keyword in C, but not in Java