3 instances When Java and Python Were The Same

3 instances When Java and Python Were The Same

Let’s talk about 3 instances when Java and Python were indistinguishable and 2 instances when they were completely different from each other

Let’s talk about 3 instances when Java and Python were indistinguishable and 2 instances when they were completely different from each other

  1. Join Method (Same)

    Image for post

If a thread calls the join method of any other thread, then the caller thread must wait for called thread to finish its execution and die. For example, here main thread has called the join method of thread t1, then the main thread waits for thread t1 to finish its (t1’s) execution. And main thread waits for the t1 thread to get terminated and killed before the execution of the main thread is resumed. This join property is the same in Java and Python.

  1. Role of this /self in Inheritance (Same)

    Image for post

When we print this / self in a method in Java / Python. The name of the object is printed, on which that method is invoked. For example, here method showName() belongs to class Zeus, but when we print this / self in method showName. The name of the class Hercules is printed. Because method showName is inherited by class Hercules and invoked on an object of class Hercules. This role of this / self is the same in both languages.

python programming java

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Guide to Python Programming Language

Guide to Python Programming Language

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Python Programming: A Beginner’s Guide

Python is an interpreted, high-level, powerful general-purpose programming language. You may ask, Python’s a snake right? and Why is this programming language named after it?

Python Hello World Program - Create & Run Your First Python Program in PyCharm

Python Hello World Program - Your first step towards Python world. Learn how to create the Hello World Python program in PyCharm.

Python Programming Tutorials For Beginners

Python Programming Tutorials For Beginners