Make the answer the same. 3,3 or 4,4 !!!!!!
3,4 cause confusion for the DEFINITION of public and private.
"Sorry Sir, public vs. private, 1M is deducted from your saving account."
"Good news...
Type: Posts; User: SmokyBrain
Make the answer the same. 3,3 or 4,4 !!!!!!
3,4 cause confusion for the DEFINITION of public and private.
"Sorry Sir, public vs. private, 1M is deducted from your saving account."
"Good news...
Thank you for your reply:
Yup, exactly the same code.
To confirm this, I purposely created the same class again and copy/paste the code from here.
Both Eclipse and NetBean again gave the same...
Eclipse result:
3
3
NetBean result:
3
4
Command line result:
3
Correct me if I am wrong: You should getting an IllegalArgumentException.
1. Think of this, when i=0, what string will you get from xPath.evaluate("StartDate", nodes.item(i))? And, what will you get...
Thank you copeg,
By removing the final from the line "private final int num = 10;", the program tends to have "making forward references" problem.
Child constructor -> Parent constructor -> ...
Codes:
class Parent {
protected int value = 1 ;
Parent() {
value = getNum();
}
public int getNum(){
return 5;