Can a computer store anything that is not represented in binary code?

时间:2015-07-28 23:11:40

标签: java

For example, how does a computer store bytecode contained in class files? Is it possible for a computer to store anything without converting it to bytecode first?

2 个答案:

答案 0 :(得分:4)

Yes, but it's very unusual for a digital computer to operate on anything but binary. For example, there are ternary computer(s) which (per Wikipedia)

a computer that uses ternary logic (three possible values) instead of the more common binary logic (two possible values) in its calculations.

Another possible example is an analog computer which (again, per Wikipedia)

a form of computer that uses the continuously changeable aspects of physical phenomena such as electrical, mechanical, or hydraulic quantities to model the problem being solved.

Finally, a quantum computer (to quote Wikipedia again)

quantum computation uses quantum bits (qubits), which can be in superpositions of states

答案 1 :(得分:-2)

No. At the core, all data stored by computers is binary.