Warships utilize a number of very powerful laser cannons that can fire across exceptionally large distances and still maintain a high level of accuracy. These cannons are typically recessed into the hull of the ship, with a movable focusing lens near the end of the barrel that allows the laser to be fired at different angles. (A typical laser cannon can be fired, for example, at a 30 degree angle).
Due to powerful electromagnetic-interference (as a result of bothe ECM and natural stellar phenomenae) it is very difficult, and often impossible, to "lock on" to an enemy ship with computer targetting, forcing these laser cannons to be aimed and fired manually. Because of this, most warships are equipped with a large number of these cannons, firing all of them simultaneously in the general direction of an enemy ship, hoping to score a hit.