#1
  1. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0

    How to open and close the database in Java?


    Please give me the solution as fast as possible.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    /dev/null
    Posts
    163
    Rep Power
    18
  4. #3
  5. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Originally Posted by noobie1000
    Please answer my question in here because I cannot find any answers there about the methods to close the database.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    /dev/null
    Posts
    163
    Rep Power
    18
    Originally Posted by Tawijakarta
    Please answer my question in here
    When you post a question, please show us your attempts at solving your problem.

    Originally Posted by Tawijakarta
    because I cannot find any answers there about the methods to close the database
    The same material that taught you to open a database should teach you how to close it as well. If not, it's bad stuff and you should probably refer elsewhere.

    And, try searching for this string "java open and close database" using a search engine. The results are staggering.
  8. #5
  9. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Originally Posted by noobie1000
    When you post a question, please show us your attempts at solving your problem.


    The same material that taught you to open a database should teach you how to close it as well. If not, it's bad stuff and you should probably refer elsewhere.

    And, try searching for this string "java open and close database" using a search engine. The results are staggering.
    It is not helping. Plenty of results are gained by the search engine. I already try some methods such as adding these codes:

    Code:
    connection.close();
                    statement.close();
                    pernyataan.close();
                    myocardialInfarction.setVisible(false);
                    stroke.setVisible(false);
    and changing other codes.
    What else should I do?

IMN logo majestic logo threadwatch logo seochat tools logo