Solved

Can Python merge with Java functionality?

Posted on 2014-07-26
2
252 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apps blocked by Java 9 79
Windows 10 IE Certificate Issue 10 45
servlet example issue 6 39
JavaFX TableView not displaying correctly 3 18
Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as “COURSE” followed by equals sign and finally enclosed …
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 will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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.

770 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