Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: Abhishek
Title:
  Sample
Question:
   public class Sample{
       public static void main(String[] args)
    {
        Demo d = new Demo(20);
        System.out.println(d.num);
    }
} class Demo
{
    final int num;
 
    public Demo(int n)
    {
        num = n;
    }
 
}
Answers:

Name: 5435
ans must be 20 tht is the corect ans

Name: vivek satle
Answer is 20

Name: soujanya
compilation error