In Japan, the rules regarding eating in public are more about "how" and "where" rather than a strict legal ban. Traditionally, walking while eating (known as tabeluraki) is considered impolite and messy. Japanese culture places a high value on respecting food and maintaining cleanliness in public spaces; therefore, if you buy food from a street stall or a convenience store, the standard etiquette is to stand near the stall or sit in a designated area to finish it before moving on. However, this social norm has relaxed slightly in very tourist-heavy areas or during outdoor festivals (matsuri). Eating on long-distance trains like the Shinkansen or Limited Express is perfectly acceptable and even encouraged, as evidenced by the popular "Ekiben" (station bento boxes). Conversely, eating on local commuter subways or buses is generally frowned upon due to the cramped quarters and the risk of spilling or bothering others with food smells. Essentially, if you are stationary and tucked away from the main flow of foot traffic, you are unlikely to cause offense, but walking down a busy street with a burger or a slice of pizza will certainly draw disapproving looks from locals.