What is Difference Between Hardware and Software

Hardware
i) All the physical components of computer which can be touched, measured have weight and occupy space are collectively called computer hardware etc.
ii) Examples of hardware are: keyboard, mouse, joy stick, scanner, printer, CPU etc.

Software
i) Software can be defined as a set of instructions and codes written in a defined manner. In other words software are pre-written programs, which control the operation of computer.
ii) Examples of software are; DOS, windows, UNIX, XENIX, Linus, JAVA, Oracle, Antivirus etc.