Computer Applications

Consider the following class:

public class myClass {
public static int x=3, y=4;
public int a=2, b=3;}
  1. Name the variables for which each object of the class will have its own distinct copy.
  2. Name the variables that are common to all objects of the class.

Java Classes

ICSE 2014

13 Likes

Answer

  1. a, b
  2. x, y

Answered By

8 Likes


Related Questions