MCQs > IT & Programming > Java > What should be the replacement of '//ABC' in the following code? class Krit { String str= new String('OOPS !!! JAVA'); public void KritMethod(final int iArgs) { int iOne; class Bicycle { public void sayHello() { //ABC } } } public void Method2() { int iTwo; } }

Java MCQs

What should be the replacement of "//ABC" in the following code?

class Krit
{
    String str= new String("OOPS !!! JAVA");
    public void KritMethod(final int iArgs)
    {
      int iOne;
      class Bicycle
      {
        public void sayHello()
 {
          //ABC
        }
      }
    }
    public void Method2()
    {
      int iTwo;
    }
}

Answer

Correct Answer: System.out.print(iArgs);

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it