Jdk 8 to test in memory query