aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes static methods Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "static methods" Watch "static methods" New topic
Author

static methods

anushree ari
Ranch Hand

Joined: Sep 30, 2002
Posts: 98
under what circumstances static main method can call non static method,
expecting the reply soon,
thx in advance


anushree
david eberhardt
Ranch Hand

Joined: Jul 02, 2002
Posts: 158
Originally posted by anushree ari:
under what circumstances static main method can call non static method,
expecting the reply soon,
thx in advance

the key concept is that non-static methods and variables belong to instances of a class;
dough -
a. A soft, thick mixture of dry ingredients, such as flour or meal, and liquid, such as water.
b.A pasty mass similar to this mixture
dough�nut -
A small ring-shaped cake made of rich, light dough that is fried in deep fat.

let's make a doughnut!


doughnut1.makeDoughnut(); allows us to call the non-static method named makeDoughnut() becasue we have an instance variable doughnut1 to attach to.
Did this help?
anushree ari
Ranch Hand

Joined: Sep 30, 2002
Posts: 98
thx david, it really helps a lot,
thank you very much
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: static methods
 
Similar Threads
Float wrapper takes double primitive implicitly.
Question
can a static method be override.
tere is a ques abt static method.
About overriding