Here you can find the source of getFloat(ResultSet resultSet, int columnIndex)
public static Float getFloat(ResultSet resultSet, int columnIndex) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Float getFloat(ResultSet resultSet, int columnIndex) throws SQLException { float value = resultSet.getFloat(columnIndex); return resultSet.wasNull() ? null : value; }//from w w w .j av a 2 s. com }