Let's say we want to make a website that greets the user when they visit its URL and thanks them for visiting. This is how it would play out.
The user visits the site's URL, and after 2 seconds, an h1 tag should appear saying Hello, then after another second, a p tag should appear saying "World." 3 seconds later, the text should change to "Thank you for visiting"
The user visits the website
2 seconds delay
Unhide H1 tag <H1>Hello</h1>
Unhide P tag <p>World</p>
3 seconds delay
Hide the P tag
Change the H1 tag to "Thank you for visiting."
These are two different languages operating under very different architecture. They are not related in any way. The only similarities is that they are both programming languages and they share the word Java in their names thanks to the popularity of the word Java back in the days. Every company wanted to be associated with the name.
While interpreted languages were seen as toy languages in the 90s, where the code would have to execute line by line leading to very slow programs, compiled languages were the more serious languages that would give you fast-running codes.
That is all for this article, If you found it helpful, share it with others who might find it interesting and leave us a comment below.
Thank you for reading!!