The method getOutputStream() on the Process class returns a stream you can write to in Java that connects to the stdin stream of the process. You should be able to read this as you would normally read stdin for each language (e.g., cin for C++, scanf for C, STDIN.read for Ruby, don't know Python!)

If this is what you're doing and it isn't working (your question sounds like it might be but it's hard to tell) could you post some code to make it easier to see what you might be doing wrong?

Answer from Jonathan on Stack Overflow
🌐
Quora
quora.com › What-computer-language-should-I-learn-first-Python-Java-Ruby-React-SQL-or-something-else
What computer language should I learn first? Python, Java, Ruby, React, SQL, or something else? - Quora
Answer (1 of 6): Why are you learning? Are you going to be looking for a job? In what industry? Or, are you looking for another tool for your toolbox? Python is quite popular for simple and complex applications. The virtue is that there’s lots of supporting packages to do specialized things (sig...
Discussions

Getting Java to talk to Python, C, C++, and Ruby - Stack Overflow
I have succeeded in getting ProcessBuilder to run external scripts, but I still have to get Java to communicate with the external scripts. I figure that I should get the input/output streams from the More on stackoverflow.com
🌐 stackoverflow.com
What makes Python is so popular and Ruby died ?
Python really is a jack of all trades. It's a swiss army knife. It may not be the best option in a lot of cases but its versatility means you can use it for almost anything. A lot of that is owed to the massive availability of libraries which seem to have answers to any problem one might face and cut down coding time significantly. More on reddit.com
🌐 r/Python
346
428
October 23, 2023
Python, Ruby, PHP or Java? How to pick a programming language to learn
By choosing javascript though, you will miss out on learning some deeper software design principles that will be important for your career in the long term. These tend to be better learnt through a more full-fledged backend language such as Ruby, Python, Java. That argument might apply to Java, but not Python or Ruby. Javascript isn't a backend language except for implementations like Node.js, though it is still a prototype-based OOP model language, whereas Ruby and Python are OOP languages as well. Those three are similar languages for being interpreted (meaning they are compiled and executed at runtime, rather than compiled like Java), and for being dynamic and not nominally or statically typed like Java (i.e. you need to declare types in Java, not the others). Java also enforces OOP, requiring you create at least a class for main function, whereas the others allow simply creating functions outside of classes or even coding outside functions. More on reddit.com
🌐 r/learnprogramming
4
1
October 5, 2020
Java or Python or Ruby for Web Application? - Stack Overflow
If I were to implement a web application from scratch today, which app stack should I go for? Three main candidates are java, python and Ruby on Rails (RoR). There is also .NET, but its biased towa... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Swyply
swyply.com › blog › python-vs-java-vs-ruby-rails
Python vs Java vs Ruby Rails - which backend is right for me? - Swyply
March 21, 2024 - Lastly, Ruby Rails, while not as fast as Java, offers a good balance of speed and simplicity, making it ideal for web development. It’s important to note that the right choice depends on the specific requirements of your project. Tip: Always consider the trade-offs between speed, simplicity, and robustness when choosing a backend language for your project. Moreover, consider the best way to hire Python developers, Java coders, and/or RoR programmers.
🌐
Medium
medium.com › quick-code › java-vs-other-programming-languages-python-ruby-c-does-java-come-out-on-top-82e2e0cb6a4
Java vs. Other Programming Languages (Python, Ruby, C++): Does Java Come Out on Top? | by Sravan Cynixit | Quick Code | Medium
December 21, 2019 - We have identified certain key features offered by them and talk about how they compare with similar features in Java.) For more Additional info at Ruby On Rails Online Training. Python is a high-level language which fully supports object-oriented programming.
🌐
Udemy
udemy.com › development › programming languages › python
Master Ruby, Python and Java | Udemy
Projects in Programming Languages with Ruby, Java and Python is an in-depth and comprehensive introduction to project based programming using 3 of the most popular and financially rewarding programming languages out there - Ruby, Java and Python.
Rating: 4 ​ - ​ 199 votes
🌐
StackShare
stackshare.io › stackups › java-vs-python-vs-ruby
Ruby vs Python vs Java | What are the differences? | StackShare
July 11, 2022 - Python is also cross-platform compatible but is commonly used for web development and scientific computing. Ruby, although not as versatile as Java or Python, is primarily used for web development and has frameworks like Ruby on Rails.
Find elsewhere
🌐
Google Cloud
cloud.google.com › blog › topics › developers-practitioners › new-java-ruby-python-php-runtimes
New Java, Ruby, Python, and PHP runtimes for Google App Engine and Cloud Functions | Google Cloud Blog
April 14, 2022 - Same thing for Python and Go developers, you can take advantage of the bundled services as well. If you’re still using an old runtime version, this will further ease the transition to newer versions. Be sure to check it out and upgrade. Next, let’s continue with a fresh bean and a shiny gem, mixed in with some friendly animals, with the preview of the Java 17, Ruby 3.0, Python 3.10 and PHP 8.1 runtimes for both App Engine and Cloud Functions.
🌐
Reddit
reddit.com › r/learnprogramming › python, ruby, php or java? how to pick a programming language to learn
r/learnprogramming on Reddit: Python, Ruby, PHP or Java? How to pick a programming language to learn
October 5, 2020 -

I have noticed a lot of folks asking what language to use to learn programming. Javascript seems to have become popular for the backend. Some coding bootcamps seem to use that as well.

By choosing javascript though, you will miss out on learning some deeper software design principles that will be important for your career in the long term. These tend to be better learnt through a more full-fledged backend language such as Ruby, Python, Java.

Here's a post that explores this:

Python, Ruby, PHP or Java? How to pick a programming language to learn

Top answer
1 of 8
26

Background : I'm a professional Java developer that does Django on the side.

Java

Java is used mainly in the enterprise, and there are very good reasons for it. Java is a good solution if you need a language that is mature, has good support for concurrency, transactions, access to multiple databases ... Java is also a very stable platform. And by stable, I dont mean that it has fewer bugs than Python or Ruby, I mean that it doesnt change as much.

There is wonderful tool support for Java. Great IDE, great refactoring tools, great static analysis tools ... You probably wont find as many tools of that quality for any other language.

There are a lot of slow Java applications, but in my opinion it comes more from developers using an architecture that they dont understand, trying to do things more complicated than they need to. You can develop high performance, very fast websites with Java.

Django

Django is more light weight, more fun to work with. You can have an application running in a very short time. The admin interface is magical for simple CRUD operation and can be used for even pretty complex logic. You can find a lot of "reuseable apps" that will implements some of the functionalities that you need.

Even if Django is now in version 1.0, it is far from stable. If you need to be still developing your project in 1-2 years, you can expect a lot of changes just to follow the state of Django.

Conclusion

Use Java if you already know it and if you have needs for complex architecture and long term support.

Use Django (or RoR) if you want rapid development and dont care if you need to rewrite a lot of the app in 1-2 years.

2 of 8
22

Pick which is familiar to you and run with it.

Or you can pick Django on Jython to get best of Java libraries and Python's speed-coding.

Or pick Java if you need to convince somebody that it is enterprise-y.

I would say if you're working alone / in a small team, then just pick the one that requires least resources (hint: Python).

🌐
Medium
medium.com › @anirbanroydas › python-ruby-node-go-java-scala-javascript-the-language-cocktail-its-mystical-nature-be598e266a2b
Python, Ruby, Node, Go, Java, Scala, Javascript - the language cocktail & its mystical nature | by ANIRBAN ROY DAS | Medium
April 12, 2017 - All these are different for different languages. More, the way profiling is done, the way debugging is done, the flexibility of variable assignments, the nature of the type definition, assignments, some are statically typed like C/C++, Java, Go, some are dynamically typed like python, ruby, javascript, php.
🌐
Cursa
cursa.app › all courses › information technology › programming languages ( python, ruby, java, c )
Language Showdown: Python vs. Java vs. Ruby vs. C | Cursa: Free Online Courses + Free Certificate
In the programming world, choosing the right language can significantly impact the success and scalability of projects. Python, Java, Ruby, and C are among the most popular and versatile languages in the tech industry today. This article explores each language’s strengths and weaknesses, ...
🌐
H2K Infosys
h2kinfosys.com › blog › python vs java vs php vs perl vs ruby vs javascript vs c++ vs tcl
Python vs JAVA vs PHP vs PERL vs Ruby vs JavaScript ...
December 24, 2024 - Python: Simple and beginner-friendly syntax, great for newbies. Java: Verbose but consistent; requires an understanding of object-oriented principles. PHP: Relatively simple for web development, but has inconsistent syntax. Perl: Complex syntax; steep learning curve for beginners. Ruby: Intuitive and beginner-friendly, designed for productivity.
🌐
GeeksforGeeks
geeksforgeeks.org › python-vs-ruby
Python vs Ruby - GeeksforGeeks
September 3, 2024 - Ruby is a dynamic programming language due to which there is no tough rules on how to built in features and it is very close to spoken languages. Python is a simple, easy-to-learn, powerful, high level and object-oriented programming language.
Top answer
1 of 13
66

Both Python and Ruby have full support for multi-threading. There are some implementations (e.g. CPython, MRI, YARV) which cannot actually run threads in parallel, but that's a limitation of those specific implementations, not the language. This is similar to Java, where there are also some implementations which cannot run threads in parallel, but that doesn't mean that Java is single-threaded.

Note that in both cases there are lots of implementations which can run threads in parallel: PyPy, IronPython, Jython, IronRuby and JRuby are only few of the examples.

The main difference between Clojure on the one side and Python, Ruby, Java, C#, C++, C, PHP and pretty much every other mainstream and not-so-mainstream language on the other side is that Clojure has a sane concurrency model. All the other languages use threads, which we have known to be a bad concurrency model for at least 40 years. Clojure OTOH has a sane update model which allows it to not only present one but actually multiple sane concurrency models to the programmer: atomic updates, software transactional memory, asynchronous agents, concurrency-aware thread-local global variables, futures, promises, dataflow concurrency and in the future possibly even more.

2 of 13
21

A confused question with a lot of confused answers...

First, threading and concurrent execution are different things. Python supports threads just fine; it doesn't support concurrent execution in any real-world implementation. (In all serious implementations, only one VM thread can execute at a time; the many attempts to decouple VM threads have all failed.)

Second, this is irrelevant for web apps. You don't need Python backends to execute concurrently in the same process. You spawn separate processes for each backend, which can then each handle requests in parallel because they're not tied together at all.

Using threads for web backends is a bad idea. Why introduce the perils of threading--locking, race conditions, deadlocks--to something inherently embarrassingly parallel? It's much safer to tuck each backend away in its own isolated process, avoiding the potential for all of these problems.

(There are advantages to sharing memory space--it saves memory, by sharing static code--but that can be solved without threads.)

🌐
Codecademy
codecademy.com › home › the weird backstories behind how 8 coding languages got named
Programming Language Names Meanings: Java, SQL, Ruby, Python
July 8, 2024 - There was some drama between Java and JavaScript that ended in a licensing agreement, Brandon, a full-stack developer in Brooklyn, told Codecademy. Sun Microsystems, the company behind Java, allowed Netscape to name its language JavaScript in exchange for allowing Java to run inside Netscape’s web browser, he said. A python snake might be scary, but Python the programming language is not.
🌐
Code Institute
codeinstitute.net › blog › coding › what’s the best coding language for a beginner – ruby, javascript, python or java?
What's The Best Coding Language For A Beginner - Ruby, Javascript, Python or Java?
June 30, 2022 - While the language itself is object-oriented, it also supports procedural, functional, and imperative programming, which makes Ruby as a language very flexible, and therefore, a very valuable skill for a young coder to possess. Python is usually used and referred to as a scripting language, allowing programmers to create large quantities of easily readable and functional code in short periods of time.
🌐
Mccue
mccue.dev › pages › 7-27-24-you-can-run-java-like-python-or-ruby
You can run Java like Python now
As of Java 22, you can run Java code like you would an interpreted language such as Python, Ruby, JavaScript, etc.