In
many cases, the law allows the defendant to be released from prison
before a trial if he promises or guarantees to come to court when told.
This promise or guarantee is called bail. Before
the judge makes the decision whether to offer bail, he may hold a hearing
to determine how long the defendant has lived in the area; if he has
family close by; if he has ever been arrested before and, if so, if
he has appeared in court as told; and, finally, if he has threatened
any witnesses in the case. The judge also considers the defendants
potential danger to the community.