A Data Science Central Community
Function and Polymorphism
When I started learning these two languages, as mentioned before, I always keep in mind that the difference between dynamic data type and static data type. Then the question came out: why they need to be like that? What is the advantage of being dynamic data type or being static data type? To make the question more concrete, let’s see how to define a function in both languages.
In Java, everything is very…
ContinueAdded by Yuecai Zhu on December 16, 2013 at 1:30pm — No Comments
3. Sequence Type
This time, we compare the sequence types of the two languages. By the terminology sequence type, we mean the data structure that is kind of a sequence of data.
In Java, we have: String, array, list(arraylist and linkedlist), set;
In Python, we have: Str, tuple, list, set;
Yes, String is one of the sequence type, because it is a sequence of char, isn’t it? About the Sting type, we only need to…
ContinueAdded by Yuecai Zhu on November 10, 2013 at 12:00pm — 2 Comments
Now we try to use the two languages to do a practice. The following, one in Java one in Python, are two programs with the same algorithm.
/*
* program author: Yue Cai Zhu.…
Added by Yuecai Zhu on October 30, 2013 at 5:32pm — No Comments
Added by Joey Fitts on August 13, 2009 at 9:37pm — No Comments
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
© 2021 TechTarget, Inc.
Powered by
Badges | Report an Issue | Privacy Policy | Terms of Service
Most Popular Content on DSC
To not miss this type of content in the future, subscribe to our newsletter.
Other popular resources
Archives: 2008-2014 | 2015-2016 | 2017-2019 | Book 1 | Book 2 | More
Most popular articles