Sometimes the names of plants bears a resemblance to the reference. In other cases, the name seems arbitrary and in some cases, inappropriate. This is a Pineapple Guava or Feijoa sellowiana. Since pineapples do not grow on trees and this is a tree, I am surprised at the name. I suspect that the fruit looks like a pineapple or whatever. They are very nice flowers however.