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 روز
آرشیو پست ها
1 256
21.
Identify the output of the following program.
String str = “Hellow”; System.out.println(str.indexOf(‘t));
1 256
20. Identify the output of the following program.
String str = “abcde”; System.out.println(str.substring(1, 3));
1 256
17.
Identify what can directly access and change the value of the variable res.
Package com.mypackage; Public class Solution{ Private int res = 100; }
1 256
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
1 256
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.
1 256
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]; }
1 256
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
1 256
10. Select the valid statement to declare and initialize an array.
1 256
9. When an array is passed to a method, what does the method receive?
1 256
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 👇
1 256
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); } }
1 256
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); } }
1 256
4. Find the output of the following code.
int Integer = 24; char String = ‘I’; System.out.print(Integer); System.out.print(String);
1 256
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! 🌟🙏
