
Mile Stone 1
Authored by Rahul Avulapati
Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Finally block is attached to?
Try-catch block
class block
method block
All of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What is garbage collection in java?
Method to manage memory in java
Create new garbage values
Delete all values
All of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Which is/are valid method(s) of math library in java?
max()
cbrt()
log10()
All of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
class Test {
public static void main(String[] args) {
for(int i = 0; 0; i++)
{
System.out.println("Hello");
break;
}
}
Hello
Empty output
Compiler error
Runtime error
5.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Which of these is a super class of all errors and exceptions in the Java language?
RunTimeExceptions
Throwable
Catchable
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
public class Test2 {
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("Complete");
s1.setCharAt(1,'i');
s1.setCharAt(7,'d');
System.out.println(s1);
}
}
public class Test2 {
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("Complete");
s1.setCharAt(1,'i');
s1.setCharAt(7,'d');
System.out.println(s1);
}
}
Complete
Iomplede
Cimpletd
Coipletd
7.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
If a thread goes to sleep?
It releases all the locks it has.
It does not release any locks.
It releases half of its locks.
It releases all of its lock except one.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?