ch
Feedback
JMB Materials

JMB Materials

前往频道在 Telegram

All Programming Language Materials All free Courses All free materials For Daily Job updates: https://t.me/jobsmukyambigilu

显示更多
1 256
订阅者
-124 小时
-17
-1230
帖子存档
21. Identify the output of the following program. String str = “Hellow”; System.out.println(str.indexOf(‘t));
Anonymous voting

20. Identify the output of the following program. String str = “abcde”; System.out.println(str.substring(1, 3));
Anonymous voting

19.compareTo() returns
Anonymous voting

18. In which of the following is toString() method defined?
Anonymous voting

17. Identify what can directly access and change the value of the variable res. Package com.mypackage; Public class Solution{ Private int res = 100; }
Anonymous voting

16. Identify the keyword among the following that makes a variable belong to a class,rather than being defined for each instance of the class
Anonymous voting

15.Identify the correct restriction on static methods. 1.They must access only static data 2.They can only call other static methods. 3.They cannot refer to this or super.
Anonymous voting

14.Identify the corrected definition of a package
Anonymous voting

13. When is the object created with new keyword?
Anonymous voting

12. Arrays in java are-
Anonymous voting

11.Find the value of A[1] after execution of the following program. int[] A = {0,2,4,1,3}; for(int i = 0; i < a.length; i++){ a[i] = a[(a[i] + 3) % a.length]; }
Anonymous voting

Hello everyone in our channel! Your support means the world to us. We kindly request your help in expanding our community. Please share our channel with your friends, college groups, and colleagues. Together, let's grow and thrive! 🌟🙏 https://t.me/jmbprogrammingmaterials

10. Select the valid statement to declare and initialize an array.
Anonymous voting

9. When an array is passed to a method, what does the method receive?
Anonymous voting

8. Output of the following public class Solution{ public static void main(String[] args){ int[] x = {120, 200, 016}; for(int i = 0; i < x.length; i++){ System.out.print(x[i] + “ “); } } } Comment 👇

7. Select the valid statement.
Anonymous voting

6. Find the output of the following program. public class Solution{ public static void main(String[] args){ byte x = 127; x++; x++; System.out.print(x); } }
Anonymous voting

5. Find the output of the following program. public class Solution{ public static void main(String[] args){ short x = 10; x = x * 5; System.out.print(x); } }
Anonymous voting

4. Find the output of the following code. int Integer = 24; char String = ‘I’; System.out.print(Integer); System.out.print(String);
Anonymous voting

Hello everyone in our channel! Your support means the world to us. We kindly request your help in expanding our community. Please share our channel with your friends, college groups, and colleagues. Together, let's grow and thrive! 🌟🙏