User Comments for the tutorial:

Example of static method

Total comments: 14      View Tutorial    Discuss: Example of static method



can u give betterexample regarding static method
can u give betterexample regarding static method 

static verses nonstatic class
Can a static class inherit non static class?  

static class
it is realy very helpful to me. 

Nice Help
Static method is very greatfull for all persons... Thanks.......... 

Static Method
Tq for the sample program. it's simple, but very clear. 

static method
this is good example for static method. 

it is very good..... 

satisfied answer
i m satisfied with this example.i want to know about every topc in java with example. please send me. 

Sir I thank you for giving information about Static/non static variable & method. Still i have a doubt. If you don't mind give me the correct introduction about static variable please. 

Stativ method
It is simple and superb that any one can easily understand. Can u provide more information regarding this in the same way? 

static methods instead normal ?purpose
why we need to use static methods.can any one tel 

to day it is not widely used in java
can we access the inner class mamber ?  

awesome concepts
The concepts given at the beginning are very helpful.thanks....... 

invoking static method using instance
I have a doubt.We know,Static methods can't use any instance variables. Then how it is possible... class FinalDemo{ public static void show(){ System.out.println("from super class..."); } } class XtendFinal extends FinalDemo{ public st 

Related Tutorial and Articles
Java Beginners

Can u Look to the error plz - Java Beginners
Can u Look to the error plz  this is my code can u modify it plz and give me the result of it when u check it on eclipse or jcreator plz and i will be more thankfull if u do that :) , oh yeh one thing can you draw a flag 

Java Beginners

class static - Java Beginners
information on Static in Java visit to :; Hi friend, public class HowToAccessStaticMethod{ int i; static int j; public static void staticMethod(){ System.out.println("you can access 

Core Java

, rather than attaching to an object. A static method of a subclass can shadow a static method of the superclass, regarding the original method was not declared... can say that a static method can't be converted into an instance method 

Java Beginners

static  what r the main uses of static in java   Hi Friend... means that the specified method of the object can be accessed directly, without... the following link: 

Java Tips and Examples

Example of static method
of the instance methods and static methods then you can know where to use instance method and static method.  A static method can be accessed without creating... cannot be referenced from a static context. Static method can call only other static 

Java Beginners

Static final variables - Java Beginners
Static final variables  can a static final variable be accessed by a instance (non-static)method?  Hi, static final variable u can access in non-static method. but the variable should has accessibility, means 

Java Beginners

Why is the main method declared static?
java method can be called without having to instantiate in the class that defines the static method. For more visit is the main method declared static?  Hi, Why is the main method 

Java Beginners

regarding j2me - Java Beginners
regarding j2me  sir but i have to use the drawString u tell me how can i display two too long strings 

Java Beginners

Static method in java - Java Beginners
Static method in java  What are static method in Java  Hi Friend, Please visit the following link: Hope that it will be helpful for you 

Java Beginners

can u plz try this program - Java Beginners
can u plz try this program  Write a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List.... --------------------- <%@ page language="java