Question: How Do You Wire A Light Fixture With 2 Black And 2 White Wires?

How do you wire a light fixture with two white wires and two black wires?

.

Why does my outlet have 2 black and 2 white wires?

How do you wire a light fixture with two sets of wires?

Which wire is hot when both are black?