Java ProgrammingPrograming & IT Mcqs

100+ MCQ & Answer Java programming | page-04 |Computer Engineering MCQ And Answer

31.
Which of the following is a valid syntax to synchronize the HashMap?

32.
Which of the following is a mutable class in java?

33.
What will be the output of the following program?

abstract class MyFirstClass

{

abstract num (int a, int b) { }

}

34.
What is meant by the classes and objects that dependents on each other?

35.
Which of the following code segment would execute the stored procedure “getPassword()” located in a database server?

36.
How many threads can be executed at a time?

37.
If three threads trying to share a single object at the same time, which condition will arise in this scenario?

38.
If a thread goes to sleep

39.
Which of the following modifiers can be used for a variable so that it can be accessed by any thread or a part of a program?

40.
In character stream I/O, a single read/write operation performs _____

Leave a Reply

Your email address will not be published. Required fields are marked *