Solved

Can Python merge with Java functionality?

Posted on 2014-07-26
2
244 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
Comment Utility
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
Comment Utility
Perfect.
Thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

763 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

13 Experts available now in Live!

Get 1:1 Help Now