Mallik kannan wrote:Hi all,
I am new java beginner , i need of some clarification and they are as follows:
a. I want to know the need of JUnit?
b. While Using Private Variables, Setters/ Getters are came into play. My Query is Q) Is private variables are handled only by Setters/getters? or What are all the other usage of Setters and getters other than private variables?
Thanks in advance,
Kannan
From what I understand is setters set the variables and can't be changed it will
test to see if the number you put in matches the number you have set so the program will not crash lol
getters are the fetchers meaning they get those numbers you have set one book
you should get is head first java or at least look at it it will explain better then that.