Sail E0 Webinar

MCQs

Total Questions : 50 | Page 5 of 5 pages
Question 41. If a priority of a java thread is 3 then the default priority of its child thread will be
  1.    0
  2.    1
  3.    5
  4.    3
 Discuss Question
Answer: Option D. -> 3
Question 42. Output of following Java program?class Test{ public static void main (String[] args) { int arr1[] = {1, 2, 3}; int arr2[] = {1, 2, 3}; if (arr1 == arr2) System
  1.    Same
  2.    Not same
  3.    Error
 Discuss Question
Answer: Option B. -> Not same
Question 43. _____ is used to find and fix bugs in the Java programs
  1.    JVM
  2.    JRE
  3.    JDK
  4.    JDB
 Discuss Question
Answer: Option D. -> JDB
Question 44. Which component is used to compile, debug and execute java program?
  1.    JVM
  2.    JDK
  3.    JIT
  4.    JRE
 Discuss Question
Answer: Option B. -> JDK
Question 45. The wrapping up of data and functions into a single unit is called
  1.    overloading
  2.    class
  3.    object
  4.    encapsulation 
 Discuss Question
Answer: Option D. -> encapsulation 
Question 46. Which of the following is not a Java features?
  1.    Dynamic
  2.    Architecture Neutral
  3.    Use of pointers
  4.    Object-oriented
 Discuss Question
Answer: Option C. -> Use of pointers
Question 47. Which of this keyword must be used to inherit a class?
  1.    super
  2.    this
  3.    extend
  4.    extends
 Discuss Question
Answer: Option D. -> extends
Question 48. What will be the output of below code? String statement = "Outfit of the day"; System
  1.    it of
  2.    tfit
  3.    fit
  4.    FIT
 Discuss Question
Answer: Option C. -> fit
Question 49. Which statements is/are correct
  1.    On calling Thread start ( ) method a new thread is created
  2.    Thread start( ) method call run( ) method internally
  3.    Thread run( ) method can also be called directly to create thread
  4.    both a & b
 Discuss Question
Answer: Option D. -> both a & b
Question 50. What is the advantage of Exception Handling
  1.    To avoid abnormal termination of a program
  2.    To find out errors
  3.    To Debug program
  4.    None of these
 Discuss Question
Answer: Option A. -> To avoid abnormal termination of a program

Latest Videos

Latest Test Papers