What happens when a class is made static like if a field or
member is made static it becomes class variable and is
shared by all the object of the class?

Answer Posted / arvind verma

If a class is made static then we can access it's methods &
variables by using class name , no need to create class
object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is comparable and comparator interface?

582


What is the difference between a loader and a compiler?

530


What is the default size of load factor in hashing based collection?

568


What is a numeric string?

568


How do you add an arraylist to an array in java?

511






What does flagged out mean?

576


what is object-oriented programming in java?

591


What is meant by final class?

567


What is the use of string and stringbuffer?

555


how we can make a write-only class in java?

563


what is deadlock? : Java thread

529


Does constructor be static?

568


Is vector thread safe in java?

563


Can a string be null?

546


Explain the concept of proper inheritance?

623