Solved

Can Python merge with Java functionality?

Posted on 2014-07-26
2
249 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
2 Comments
 
LVL 28

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now