Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

convert a given .PHP code into .java class

  Asked By: Ayden    Date: Apr 12    Category: Java    Views: 3470
  

Can anyone convert a given .PHP code into .java class???(need to have some idea
about JDOM).I need some immediate help about this conversion

Share: 

 

1 Answer Found

 
Answer #1    Answered By: William Bouchard     Answered 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.

 
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: