soumya


{ City } kolkata
< Country > india
* Profession * software engineer
User No # 107538
Total Questions Posted # 3
Total Answers Posted # 1

Total Answers Posted for My Questions # 7
Total Views for My Questions # 15657

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 0
Questions / { soumya }
Questions Answers Category Views Company eMail

Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

Ericsson,

5 Core Java 7209

Why method overloading and method overriding required in java?

Ericsson, Wipro,

1 Core Java 4264

In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?

Ericsson,

1 Core Java 4184




Answers / { soumya }

Question { Ericsson, 7209 }

Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?


Answer

what is the advantage to declare a var as static instead of instance var..can you please tell me in brief?

Is This Answer Correct ?    1 Yes 0 No