My Eclipse is Displaying the below Error when I try to add executeQuery in code

The stmt is only showing execute and not showing executequery and other execute method
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
java.sql.Statementis an interface in java.sql package andjava.beans.Statementis a class injava.beanspackage. you need java.sql.Statement not java.beans.Statement.import
java.sql.Statement, which hasextecute(str)and otheroverloaded execute methods.java.beans.Statementhas only one execute method