what is the difference between statis block and static
variable
Answer Posted / kiran
static variable are access and executed with objects or
methods(static or non-static) its a dependent.
static block executed and access independently when the
program starts
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the differences between the constructors and methods?
What are aggregate functions explain with examples?
What is the maximum size of list in java?
What is the difference between choice and list?
Explain about automatic type conversion in java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is the difference between iterator and enumeration ?
What is a parameter used for?
What is the exact difference in between unicast and multicast object? Where we will use?
Define iterator and methods in iterator?
What is an object class?
What is the use of jtable?
What are the drawbacks of singleton class?
What do you understand by Header linked List?