Search Header Logo

Mile Stone 1

Authored by Rahul Avulapati

Computers

University

Used 8+ times

Mile Stone 1
AI

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?

  1. Try-catch block

class block

method block

All of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What is garbage collection in java?

  1. Method to manage memory in java

  1. Create new garbage values

  1. 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?

  1. max()

  1. 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

  1. public class Test2 {  

  2.     public static void main(String[] args) {  

  3.         StringBuffer s1 = new StringBuffer("Complete");  

  4.         s1.setCharAt(1,'i');  

  5.         s1.setCharAt(7,'d');  

  6.         System.out.println(s1);  

  7.      }  

  8.  }  

Complete

  1. Iomplede

  1. Cimpletd

  1. Coipletd

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

If a thread goes to sleep?

  1. It releases all the locks it has.

  1. It does not release any locks.

  1. It releases half of its locks.

  1. 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?