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
how to write a program for sending mails between client and server
Can we execute java program without main method?
Can we override constructors?
What are selection structures?
What is meant by stack and queue?
What are the 3 types of loops in java?
What is a subsequence of a string?
How do you write methodology?
What is this () in java?
Can we use String with switch case?
What is the most important feature of java? What is an interface?
How do you replace all in word?
What is fundamental datatype?
How do you convert an int to a string in java?
What is the difference between yielding and sleeping in java programming?