Japan to Gibraltar: You'll need an adapter
You'll need a plug adapter: Japan uses Type A/B, Gibraltar uses Type C/G, and they don't fit. Voltage differs too (100V vs 230V) -- only plug in devices rated for both, or use a voltage converter, not just a plug adapter.