Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython
by Richard Hightower
Java Types
In this section we're going to cover how Python handles the conversion from Java types when you pass arguments to Java methods and when those methods return values. First, though, let's briefly cover the Java basic types:
boolean— contains true or false
char— contains Unicode characters
byte— contains 8-bit signed integers
short— contains 16-bit signed integers
int— contains 32-bit signed integers
long— contains 64-bit signed integers
float— contains 32-bit floating-point numbers
double— contains 64-bit floating-point numbers
String— contains a string of Unicode characters
array— contains arrays of objects or primitive types
Primitive versus Basic TypesI define as Java basic types all of the primitive types plus any classes that have special ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access