M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Which one of the following is not an annotation used by Junit with Junit4?

  • (A) @Ignored
  • (B) @AfterClass
  • (C) @BeforeClass
  • (D) @Test
  • Correct Answer - Option(A)
  • Views: 198
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on JAVA

Q. Which of the following is a bitwise operator in Java?

Q. Which component is responsible to optimize bytecode to machine code?

Q. What will be the output of the following code

Q. What will the output of the following program? public class Test{ public static void main(String args[]){ float f = (1 / 4) * 10; int i = Math.round(f); System.out.println(i); } }

Q. Which of the following is/are true about packages in Java? 1) Every class is part of some package. 2) All classes in a file are part of the same package. 3) If no package is specified, the classes in the file go into a special unnamed package 4) If no package is specified, a new package is created with folder name of class and the class is put in this package.

Q. Which of the following package stores all the standard java classes? a) jav

Q. What is the numerical range of a char in Java?

Q. What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }

Q. ______ statement in java is multiway branch statement.

Q. If the superclass method does not declare an exception, subclass overridden method cannot declare the checked exception but it can declare unchecked exception.

Learn All JAVA MCQs


Question analytics