suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / aruna raman
'S' should be in capital for string.. Java is case
sensitive, then it will run successfully.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which containers use a flowlayout as their default layout in java programming?
Can a class be final?
Explain super keyword in java.
Can private method static?
Why string is called as immutable?
What is nan inf?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Which command from the jdk compiles a java program?
What is the access scope of a protected method?
What is empty string literal in java?
Can we have any other return type than void for main method?
Can we use a default constructor of a class even if an explicit constructor is defined?
Explain about varargs in java?
Explain about collection interface in java?
Which collection does not allow duplicates in java?