Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Joel Elliott   on Oct 10 In Java Category.

  
Question Answered By: Tammy Sanders   on Oct 10

You should change the declaration of the method:
public void connect() throws ClassNotFoundException

But I don't understand why the line  Class.forName(driver); is there,
because you don't assign the return value to a variable. If you remove
the line, you don't need to change the declaration of the method and the
code will do the same.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Calling classes Or get search suggestion and latest updates.


Tagged: