What kind of variables a class can consist of?
Answer / Rajat Prakash Singh
A class in Java can contain instance (non-static) variables and static variables. Instance variables are specific to each object instance, while static variables belong to the class itself.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a static class in java?
What is null in java?
Can we synchronize static methods in java?
What is the multi-catch block in java?
diff. b/w JAVA and javascript...
Explain yield() method in thread class ?
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,
Can string be considered as a keyword?
What is immutability in java?
Can a private method of a superclass be declared within a subclass?
Which package is used for pattern matching with regular expressions?
Give reasons supporting that string is immutable.