answersLogoWhite

0

Static members/methods are used as in helper classes say like Math. classes which helps other objects to utilize Strings or useful functions for which you do not need to create object but invoked using Class name. Example -> singleton objects are invoked using a static function.

Disadvantage -> Static members are part of class and thus remain in memory till application terminates and can't be ever garbage collected. Using excess of static members sometime predicts that you fail to design your product and trying to cop of with static / procedural programming. It denotes that object oriented design is compromised. This can result in memory over flow.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you convert numbers into words using java?

Using toString() method


How can find the length of a string in java without using fun?

Use length() method. Example: "java".length();


What are some ways in order to perform String comparison in Java?

String comparison in Java features four ways. These ways are String comparison using equals method, equalsIgnoreCase method, CompareTo method, and CompareToIgnoreCase method.


What is method call in java?

Calling a method in Java is when you run code associated with a specific class, using the name of an instance object of a class, followed by the dot operator, followed by the name of the method, followed by the arguments of the method, enclosed in parentheses.


What are the benefits of Java chat over Yahoo chat?

There are no benefits to using JAVA chat over Yahoo chat. JAVA chat costs more money to download apps and games as well as having bad reviews from users.


What is overridnig method and overlording method in java?

There is no such thing as overlording in Java.


What is bluecove?

It is a method of putting small applications on mobile phones using Bluetooth and Java


Can InetAddress be used with inet6 in java?

Yes. Using the method InetAddress.getByName( String name) for instance.


What are benefits of array in java?

array example in java


What is the task of the main method in java platform?

It is the method that gets called when a Java application is started.


How nesting of methods is done in java?

No, Java only allows a method to be defined within a class, not within another method.


What is function in java terminology?

In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.In Java, a function is called a "method". In Java as well as other languages, a method is a function defined specifically for one class. In Java, this is the only way to define functions, therefore, all functions are methods.