What is static variable and static method?
Answer Posted / niranjanravi
static variables are classes variables not instance
variables .They are instantianted only once for a
class.They are initialised at class load time.
Static method can be referenced with the name of the name
of the particular object of that class. That's how the
library methods like System.out.println works.
| Is This Answer Correct ? | 268 Yes | 54 No |
Post New Answer View All Answers
What is integer size in java?
Where is singleton pattern used?
What are the changes in java.io in java 8 ?
Write a program to print 15 random numbers using foreach of java 8?
Describe the term diamond problem.
What are the topics in advance java?
What are the different types of sorting in java?
What is the purpose of lambda expressions?
How to change the priority of thread or how to set the priority of thread?
What is a "pure virtual" member function?
What is immutable data?
What is the difference between super class & sub class?
Explain spliterator in java8?
What is sorting in java?
What is a double?