• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static method

 
Heba Mahmoud
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .....
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic