Solved

Can Python merge with Java functionality?

Posted on 2014-07-26
2
258 Views
Last Modified: 2014-07-29
Hi

In my project, I will create a certain class in Java to perform certain networking operations.
It will be an abstract class with a key method to be implemented in Java.

Is a Python .py code able to take a .class and interface with it? - To enforce implementation of this one method? Or must I port it?

Thanks
0
Comment
Question by:beavoid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
pepr earned 500 total points
ID: 40221819
I cannot answer directly as I do not have first-hand experience, but there is Jython project (http://www.jython.org/) which is Python implemented in Java.

The wiki https://wiki.python.org/jython/WhyJython says:

- Ability to extend existing Java classes in Jython - allows effective use of abstract classes.

The classical Python (a.k.a. CPython) is implemented in the C language, and it is not capable to use Java classes the wanted way.
0
 

Author Closing Comment

by:beavoid
ID: 40227861
Perfect.
Thanks
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question