Menu
Question Index
...

What will be the output of the following program?

public class IssueRises {
    public String myIssue = "Issue not fixed";
    public void IssueRises() {
        myIssue = "Issue is Fixed";
    }
    public static void main(String[] args) {
        IssueRises ir = new IssueRises();
        System.out.println(ir.myIssue);
    }
}


Issue not fixed
Issue fixed
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Static and Non Static Variables - Static and Non Static Methods

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App