Java is more powerful programming language because it support the pure object oriented programming language(means the class and object concept). Apart from this java support many feature like graphics,package, networking,socket programming,swing package etc. By using this we can implement many more things in our daily life and also many more things in internet and in today's 21st century world. As per as my knowledge is concerned java is more widely used. Last but not the least can you send me some of the information regarding python because i don't know about python but i am interested to know about it. Thanks .
Java and Python are both excellent programming languages and both are widely adopted. The answer to your question about which is more powerful depends of the intended application. Both are very complete and resourceful. Python has a less pronounced learning curve and it is a language one can love, because of its beauty. Java does some things better than python, as multi-threading. At the end, you should test both and make your choice.
hi Ravi. its not matter what ur r using main thing is for wht purpose u r using it. any ways python getting more popular also. u can find u r ans here @orcle https://blogs.oracle.com/theaquarium/entry/nuxeo5_and_java_ee
The (probably not too helpful) answer is: "depends" :-)
Java is probably more widely used, but not necessarily the best choice. If you are free to choose (which in real life people rarely are, because of legacy code, company strategies, university curriculae, or simply availability on target machines), you should consider:
- Frameworks/libraries: Does a particular framework or library exist, which fits your needs? Do you have to use a free library, or can you spend money on a commercial product?
- Performance: Are there performance restrictions which require a compiler language? Are there perhaps "soft" performance expectations by the customer?
- Language-task fit: Do you have a task which can more simply or more expressively be solved in one language or another?
- Language features: Do you need specific language features (e.g., regular expressions), which one language supports better than the other?
- Last not least - personal experience. Do you need excessive ramp-up time in one language, maybe because your knowledge in one language is significantly better than in the other?
The priority of all above points also depends on your actual task or project.
So if you were looking for a simple answer, don't be disappointed ;-)
further these alnguages allowed overloading of - = for assignment as well as equality. they allowed sap of float with int not possible in many modern languages like java, python or c++ . further syntax was English like
A programming language should be English like with natural syntax and logical transparency.
1) i understand that in Gwbasic and QBasic it was possible to swap int and float. also the == operator was overloaded for both assignment and equality . These things are not capable in modern fancy languages today like java, ruby , python all derivatives of C.
2)also gwbasic and qbasic overloaded = for both assignment and equality , a marvel which is very useful for natural looking programs not possbilei todays langugaes ruby, java , python almost all madly following c.you have not replied for this point.
3)basic was English like and concise. see the ease in statement input "name and age" name$, age. pri. c would require you to use two statements scanf, printf with awkward syntax. even c++ would require cin cout but basic was more readable and required lesser writing. even java is complicated in this regards.
4) basic had a simple facility of parameters subroutines Gosub which could transfer some part of computation a logically separate unit to another part of program without other overheads of parameter passing
5) cobol had built in indexed sequential file, basic could have built in random files one has to program al this i c++, c, java etc. handling of databases is the most important task done in it industry commercially.
6) in basic there were syntactically different loop structures while .. wend, for ... next, repeat .. until . in all derivatives of c ( c+= java ruby etc ) all blocks begin and end with braces. so it is difficult to spot and separate different types of loops employed.plus for loop is unnatural why this syntax for (exp1:exp2;exp3) compare with basic style syntax for expression1 to expression 2 step expression 3( optional step clause) body of loop next.
of course one can evolve and define iterators as sets with built in next member and have iterators in addition to for .
7) in basic a statement did not require semicolon to terminate gr8 . This saves from syntax errors. rather we should have hyphen in case we wish to continue statement on next line. may be sending program over a communication channel the editor can add semicolon at end of statement but programmer should nt be required. spare us from cancer of semicolon.all ruby , java etc suffer as they are derivatives of c.
8) c cold not overload = and equality so it introduced == and madly all derivatives followed this weakness.
9) basic allowed arrays with variable dimension . c is very weak in handling even two dimensional arrays and requires the second dimension a constant t be passed as parameter oh my god what a bad design and what a serious lacuna which can only be corrected using pointers and so cryptic code. Ok java has corrected this somewhat by treating arrays as objects.
100 in java if i have a class student and instance variable x and if i say another y =x a new object is not created but only reference is copied. this creates a subtle bug and here program loses transparency with logical thinking
one could have avoided artificial looking use of keyword new by modifying design. suppose i say student x, y then two instances of student class would be created. one does not require new. but if i say student x and later on have a statement y =x then y will be alias for as i have not declared instance student y.
i a for natural english like programming . No construct be artificial. logic should reflect in program naturally.
10) in Foxpro we had integrated development for sql databses and programming language . we could create a box simply saying 1@ 3,2 to 5,6. what an ease of user interface design . 2 say get statements of foxpro are very ideal for screen form designs no modern languages have these facilities and rather have complex mechanisms for input. we say Foxpro basic outdated and have complicated languages which require separate interface for database rather than integrated environment
11) in c and it's derivatives we have ternary operator ? : but foxpro has more easy to understand iif operator which can be used both as ternary operator or statement
12) in c and its derivatives we have switch with limited capacity. in foxpro we have do case and cases can be complicated expression resulting in strings as well .
13) Finally typography. Java has conventions of using capital letters, ( of course in a systematic fashion) but very can result in typing errors and method names are long. Programming is alogical activity to be done on paper but such ocean of methods and utility classes with such long names difficult to type has resulted in environments and programmers sitting in front of terminals damaging eyes.
so we have glorified clerks as programers rather than programming being an intelligent task . comp science is moving away from intellectual science and involving jargon and clerical tendencies ( first these were spotted n cobol) are we not proud to create and intellectual science like mathematics or relativity theory
14)finally a s John Backus remarked in Turing award lecture lecture that programming languages have become increasingly complex retaining basic defects
15) a professor of comp science fully agreed to e but he said u will not be getting support. these languages have media support. Software industry is crazy and labels things as outdated rather than creating an artistically beautiful science
Well, these two programming languages both has very sophisticated object model where Python puts the emphasis on flexibility e.g. you can use Python list to store elements of completely different types. I use this opportunity in building of software generators. But, Python is a scripting language (interpreted), while Java is compiled, although works at Java Virtual Machine. So, these languages are not very comparable, their usage depends on requirements.
From data scientist perspective, I think there is no better than python. I've worked with Csharp for short time, (it's comparable to Java), and I've also worked with Matlab and I can say that python is better than both of them, in terms of:
Simplicity (compared to Java or any C derivatives).
Open source, object oriented (compared to Matlab).
General purpose language
Actually there are many 'pythons', they do share the same concepts, but they do extremely different things.