What are the key differences between Python and Java?

  • Context: Java 
  • Thread starter Thread starter Carina5738
  • Start date Start date
  • Tags Tags
    Python
Click For Summary

Discussion Overview

The discussion centers around the key differences between Python and Java, particularly in terms of their usability, learning curve, and programming paradigms. Participants explore the applications of both languages, especially for beginners and in specific contexts like mobile app development.

Discussion Character

  • Exploratory, Technical explanation, Conceptual clarification, Debate/contested

Main Points Raised

  • One participant inquires about the applications of Python, particularly for someone new to programming.
  • Another participant notes that Python is increasingly used in scientific and statistical computing, while highlighting that mobile apps are primarily developed in Java for Android and Objective C for iOS.
  • A question is raised regarding the relative difficulty of learning Java compared to Python.
  • Some participants express the view that Python is easier for beginners, while acknowledging that both languages share fundamental programming concepts.
  • One participant emphasizes the differences between Python and Java, mentioning that Python is interpreted and Java is compiled, and that Java requires type specifications while Python does not.
  • Another participant points out syntax differences, such as the use of braces in Java versus indentation in Python, and discusses the class-oriented approach of Java as potentially confusing for beginners.

Areas of Agreement / Disagreement

Participants generally agree that Python is easier for beginners compared to Java, but there are differing opinions on the overall difficulty of the languages and their respective applications. The discussion remains unresolved regarding the extent of their differences and the implications for new programmers.

Contextual Notes

Some participants note that the lack of type initializations in Python can lead to confusion, highlighting a limitation in understanding return types. There is also an acknowledgment that both languages have unique characteristics that may affect learning and application.

Carina5738
Messages
3
Reaction score
0
Hello all,

If this has been asked before, please forgive me; what can Python be used for? Is it good for programming apps and whatnot? I have never done any programming before, so this is my very first programming language that I have just started learning.

Thanks for answering
 
Technology news on Phys.org
Python in recent years has been, from what I've heard, increasingly used in scientific and statistical computing. You can make programs that do whatever you want with it. If you're talking about mobile apps, though, Android apps are coded mostly in Java while iOS apps are coded in Objective C.
 
Oh, oh okay. Is Java harder than python?
 
Java is different than Python. Some would say that programming languages aren't necessarily "harder" than one another, but speaking from my point of view, I would say that yes, jumping into Python as a first-time programmer is much easier than Java.

That said, while they're different programming languages, the same concepts appear all throughout programming and computer science, and if you understand those concepts, switching languages isn't too big of a deal.
 
  • Like
Likes   Reactions: jim mcnamara
Coolios. Thank you!
 
axmls said:
Java is different than Python
In what way are they different? Both are Object Oriented Programming languages. Of course they are different but no language is the same with others.

In my use of Python I consider it to be a pretty simple language to learn, but reading through python code I can easily get confused with the return types of different methods or functions (since it doesn't have type initializations).
 
Python is interpreted whereas Java is compiled. In Java, everything is in a class, whereas classes aren't required in Python. Of course, types must be specified when created a variable in Java, unlike in Python. Java uses braces whereas Python uses indentation. Obvious syntax differences.

Of course, those are the same differences as in all languages, but the big one is the class-oriented approach Java takes, which can be confusing for someone who has no idea what a class is. I prefer the nice and simple buildup to object oriented programming that Python allows you to do.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 56 ·
2
Replies
56
Views
10K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K