MCQs > IT & Programming > JSharp - J# > You have created the following class to print some numbers:

public class PrintNumber {
         int a;
         int b;
        
         public void basefunt() {
            a = 0;
            b = 0;
            int[] c = { 0 };
            modify(b, c);
                System.out.println( '' '' + a  + b + c[0]);
         }
    
         public void modify(int b, int[] c) {
            a = 1;
            b = 1;
            c[0] = 1;
         }

          public static void main(String args[]) {
            PrintNumber  p = new PrintNumber();
            p.basefunt();
         }
       }

What will be the output?

JSharp - J# MCQs

You have created the following class to print some numbers:

public class PrintNumber {
         int a;
         int b;
        
         public void basefunt() {
            a = 0;
            b = 0;
            int[] c = { 0 };
            modify(b, c);
                System.out.println("" + a  + b + c[0]);
         }
    
         public void modify(int b, int[] c) {
            a = 1;
            b = 1;
            c[0] = 1;
         }

          public static void main(String args[]) {
            PrintNumber  p = new PrintNumber();
            p.basefunt();
         }
       }

What will be the output?

Answer

Correct Answer: 101

Explanation:

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

JSharp - J# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More JSharp - J# MCQ Questions

search

JSharp - J# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it