Descriptive Question

Quiz Guidelines

 

QID: 
44
Question: 

Find output:

public class MyClass {

  int id;

  public static void main(String[] args) throws Exception {

    MyClass mc = new MyClass();

    mc.id=10;

    System.out.println(((MyClass)mc.clone()).id);

  }

}

 

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!