0

Is Java better than Python?

I have no programming experience of python

7th May 2017, 1:04 PM
Parth Prashar
Parth Prashar - avatar
6 ответов
+ 7
Java
7th May 2017, 1:28 PM
Vaibhav Sharma
Vaibhav Sharma - avatar
+ 5
different uses. neither is "better" in general. But each is better at certain things. If I need to manipulate files, build a webcrawler, or various utility purposes, I choose Python everytime. even when I am using Java and have an idea for a method I want, I will prototype it in Python first because it's easier and faster. if I want actual software when I am done, Java is my choice. If I need an app, Java is my choice.
7th May 2017, 1:11 PM
LordHill
LordHill - avatar
0
what makes python faster @Kyle
7th May 2017, 4:51 PM
Parth Prashar
Parth Prashar - avatar
0
it is just quicker to write things to get them out of my head.. for instance.. ------------------------------------------------- Hello World in Java- class Dcoder { public static void main(String args[]) { System.out.println("Hello World"); } } Hello World in Python- print("Hello World") ----------------------------------------------------- addition method java vs python- Java- class Dcoder { public static int add(int x, int y){ int c = x+y; return c; } public static void main(String args[]) { System.out.println(add(4,6)); } } Python- def add(x,y): c=x+Y return c print(add(4,5)) -------------------------------------------- My codes here are often done in both Python and Java. My RGB to Hex convertor was worked out in python first. then once I had the math worked out I could easily throw it into Java.
7th May 2017, 5:40 PM
LordHill
LordHill - avatar
0
Here is an example. I wanted this conversion for this program I was making in Java http://leakyegg.website.tk/RGB.zip .. First I did the math in Python.. Once I figured it out I Redid it in Java. https://code.sololearn.com/czu7qnKGDXi2/?ref=app https://code.sololearn.com/cJsZR99yhP6O/?ref=app
7th May 2017, 5:44 PM
LordHill
LordHill - avatar
0
thanks @ kyle
13th May 2017, 8:30 PM
Parth Prashar
Parth Prashar - avatar