With APEX if you have a list of Ids like:
You can do one efficient SOQL query using the IN keyword.
SELECT ID,NAME from SObject WHERE Id IN :customObjList
I have to do a similar thing or something else which is efficient/best practice in JAVA.
I have an arrayList of Ids.
I am hoping I can use one SOQL query to get records with those Ids. If so how can I do this?