Yes we can.For example you have a table customer make a class Customer and fire query in DB and initialize data member of Customer class with the result of query witch fetch the customer info from db and use Customer class likeString name=Customer.name;
For declaring constant in Java, Java gives us 3 suggestion.1. Declare constant variable as a final.2. Also constant variable declare as a final.3. All the letter of constant variable is capital....