Types in java are divided into two categories. the primitive types are boolean, byte, char, short, not, long, float, and double. all other types are REFERENCE types
Is it a multiple choice answer? if so would like to see the answers as there are TONS of effective ways and if i list one it may not be in that list you have if its multiple choice.
Answer:
Java Class given below
Explanation:
class ReadOnly
{
protected int val;
public ReadOnly(int arg)
{
val = arg;
}
public int getVal()
{
return val;
}
}
class ReadWrite extends ReadOnly
{
private boolean dirty;
public ReadWrite(int arg)
{
super(arg);
dirty = false;
}
public void setVal(int arg)
{
val = arg;
dirty = true;
}
public boolean isDirty()
{
return dirty;
}
}
It would be to type the url in the browser's address bar