If there is connection opened to oracle from java and that connection is not closed in the program using .close or any other method, does oracle close that connection. If so is there any parameter that oracle uses to set the timeout for such connections?

Thanks in advance for your help.