This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes static method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "static method" Watch "static method" New topic
Author

static method

Heba Mahmoud
Ranch Hand

Joined: Apr 26, 2009
Posts: 62
true or false:

A private static method can be called only within other static methods in class X


can any one put examples to show encapsulation , cohesion and coupling concepts .....


SCJP Pass 85%....
Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

heba mahmoud wrote:true or false:

A private static method can be called only within other static methods in class X

False, non-static methods of the class can also call private static methods of the class...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static method
 
Similar Threads
question about static variable...
question on method overriding vs name reuse
Why interface methods are not static ?
Overriding
Static Override?? Please Help...