adspace
How to retrieve data from database in java using arraylist?
Answer Posted / Saurabh Shukla
In Java, you don't directly use ArrayList to retrieve data from a database. Instead, you typically use ResultSet or PreparedStatement objects provided by JDBC (Java Database Connectivity) API. Once the data is retrieved and stored in these objects, you can convert it into an ArrayList if needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate between static and non-static methods in java.
What is java string pool?
Write a program to find the whether a number is an Armstrong number or not?
What are the differences between heap and stack memory in java?
Write a program to print count of empty strings in java 8?
What is a constructor overloading in java?
How to sort array in descending order in java?
What do you mean by an interface in java?
How to create a base64 decoder in java8?
Realized?
What is parsing in java?
Explain public static void main(string args[]) in java.
What is the difference between break and continue statements?
What is an object in java and how is it created?
What is the difference between equals() and == in java?