Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ayden Smith   on Apr 12 In Java Category.

  
Question Answered By: William Bouchard   on Apr 12

although php  and java  have classes, they are not the same language and
they are designed for different paradigms.

java is for cross platform, where as php is designed for unix/windows.

php is very different in nature. mysql connections are opened and not
closed until the program ends, which is usually a second or two. java on
the other hand should close the mysql connections when ever a
method/object ends, i prefer to use methods as classes do not have a
desctor as such, the garbage collector handles that.

im sorry, but they are very different langauges.

Share: 

 
 
Didn't find what you were looking for? Find more on convert a given .PHP code into .java class Or get search suggestion and latest updates.


Tagged: