-2

is setMnemonic(int) a constructor or method?

http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html

redCodeAlert
  • 603
  • 2
  • 7
  • 18

1 Answers1

0

It is a method. A constructor will always consist of the name of the class being called on. This is a method, because it is called after an instance of some class, using the dot.

Zesty Memes
  • 442
  • 2
  • 11