Digital pianos can be designed to closely mimic the sound and feel of acoustic pianos. High-quality digital pianos use sophisticated sampling technology to record sounds from acoustic pianos and then recreate them when the keys are pressed on the digital instrument.
However, there will always be some differences between a well-made digital piano and an acoustic piano. For example, acoustic pianos have a more natural and complex tonal range, and the sound can change depending on where the keys are struck. The feel of the keys and the overall weight of the instrument also differ between digital and acoustic pianos.
Despite these differences, many people find that high-end digital pianos provide a more than adequate substitute for acoustic pianos, especially in situations where space, weight, or volume considerations make an acoustic piano impractical.