String str1 = new String("Hello");
String str2 = new String("Hello");
System.out.println(str1 == str2); // If your Ans is FALSE , then comment your expalantion
String str2 = new String("Hello");
System.out.println(str1 == str2); // If your Ans is FALSE , then comment your expalantion
Anonymous Quiz
45%
true
55%
false
๐2
String str = "Programming";
System.out.println(str.substring(3, 7));
System.out.println(str.substring(3, 7));
Anonymous Quiz
47%
a) "gramm"
43%
b) "gram"
3%
c) "ramm"
7%
d) "ogra"
Comment Your Explanation why ?
String s1 = "apple"; String s2 = "banana"; int result = s1.compareTo(s2); System.out.println(result);
String s1 = "apple"; String s2 = "banana"; int result = s1.compareTo(s2); System.out.println(result);
Anonymous Quiz
34%
-1
33%
0
15%
1
18%
Depends on the length of the strings
๐1
String s1 = "Hello";
String s2 = "hello";
boolean valueEqualIgnoreCase = s1.equalsIgnoreCase(s2); System.out.println(valueEqualIgnoreCase);
String s2 = "hello";
boolean valueEqualIgnoreCase = s1.equalsIgnoreCase(s2); System.out.println(valueEqualIgnoreCase);
Anonymous Quiz
75%
true
25%
false
๐3
Quiz Topic
Anonymous Poll
42%
Arrays
8%
String
38%
OOPS
7%
Linked List
5%
Data Types and Variables
1%
Opearotrs
๐1
kya bolte ho
DSA ke Topic Wise 3-4 questions ka target le every week
DSA ke Topic Wise 3-4 questions ka target le every week
Anonymous Poll
24%
Alternate Days - 1 DSA question
55%
Daily - 1 DSA questions
21%
DSA ke Questions ka bhi MCQ try kru like this jo abhi kar rahe h
Coding Wallah Sir
Quiz Topic
jiske votes jada honge kal uske quiz krenge good night
Khatarnak Questions of the Day Dimag Hila Dega baba ๐
๐
- jaldi jaldi batao
String str1 = "Hello"; String str2 = new String("Hello"); str2 = str2.intern(); System.out.println(str1 == str2);
String str1 = "Hello"; String str2 = new String("Hello"); str2 = str2.intern(); System.out.println(str1 == str2);
Anonymous Quiz
46%
false
54%
true
๐1
Aj video kafi Kam bacho ne Dekhi, Esha Qqq bhai?
Anonymous Poll
44%
Exception handling NAHI Ata Hai sir ๐
40%
Thoda Busy h,baad me dekh lenge โค๏ธ
17%
Humne to dekh li ๐ค๐
Coding Wallah Sir
Quiz Topic
So Aaj Array ke 3-4 questions krte h ready ho jao sare ๐ฅ๐ฅ
Dhyaan se lagana no jaldi baji.
How many legal array declarations in java ? [ ] string myArray1; string myArray2[ ]; string[ ] myArray3;
How many legal array declarations in java ? [ ] string myArray1; string myArray2[ ]; string[ ] myArray3;
Anonymous Quiz
9%
1
56%
2
26%
All
9%
None
๐1
Which method is used to copy one array into another in Java?
Anonymous Quiz
15%
a) copy()
27%
b) clone()
21%
c) System.arraycopy()
36%
d) Arrays.copy()
MULTIPLE CHOICE Questions
Which of the following creates an empty two-dimensional array with dimensions 2ร2?
Which of the following creates an empty two-dimensional array with dimensions 2ร2?
Anonymous Poll
9%
a) int[][] blue = new int[2, 2];
12%
b) int[][] blue = new int[2], [2];
65%
c) int[][] blue = new int[2][2];
8%
d) int[][] blue = new int[2 x 2];
55%
e) int blue[][] = new int[2][2];
๐2
Dimag Ke ๐๐ Godhe Dodane ke liye ready Ho Jao, A rha h Dhamkedar ek or Question ๐
What does this code output?
String[] nums = new String[] { "1", "9", "10" }; Arrays.sort(nums); System.out.println(Arrays.toString(nums));
String[] nums = new String[] { "1", "9", "10" }; Arrays.sort(nums); System.out.println(Arrays.toString(nums));
Anonymous Quiz
57%
a) [1, 9, 10]
14%
b) [1, 10, 9]
6%
c) [10, 1, 9]
23%
d) None of the above