J&J Snack Foods has booked a jump in first-quarter earnings on higher sales and an increase in investment income.