Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2021
    Location
    Bangalore
    Posts
    829

    Which is faster java or python?

    Java and Python are two of the most popular programming languages. Of the two, Java is the faster language, but Python is simpler and easier to learn

  2. #2
    Registered User
    Join Date
    Nov 2022
    Posts
    134
    Python is faster than Java when it comes to performance in many cases, but some developers argue that Java is more versatile. The main advantage, according to some, is its ability to be scripted.

  3. #3
    Registered User
    Join Date
    May 2024
    Location
    Bengaluru, Karnataka
    Posts
    2
    Performance Comparison
    Execution Speed:

    Java: Java is generally faster than Python because it is a statically-typed, compiled language. Java code is compiled into bytecode, which runs on the Java Virtual Machine (JVM). The JVM optimizes the bytecode at runtime using Just-In-Time (JIT) compilation, which can result in high performance.
    Python: Python is an interpreted language and dynamically typed, which means it is generally slower than Java. Python code is executed line-by-line by the Python interpreter, which adds overhead and reduces execution speed.
    Efficiency:

    Java: The strong type system and compiled nature of Java contribute to efficient memory management and faster execution times. Java’s performance is also enhanced by its garbage collection mechanism and the ability to optimize code during runtime.
    Python: Python’s ease of use and flexibility come at the cost of performance. The dynamic typing and interpreted execution model make Python less efficient than Java. However, Python’s simplicity allows for faster development and prototyping.

  4. #4
    Registered User
    Join Date
    May 2024
    Location
    India
    Posts
    35
    In terms of raw speed, Java tends to be faster than Python because it's compiled directly into machine code, whereas Python is interpreted line by line. This means Java can execute tasks more quickly, especially for large-scale applications and computational tasks. However, Python's simplicity and ease of use often make it a preferred choice for rapid development and prototyping despite its slightly slower execution speed. Ultimately, the choice between Java and Python depends on the specific requirements of the project and the trade-offs between speed and development efficiency.

  5. #5
    Junior Member
    Join Date
    Aug 2024
    Posts
    21
    Python is more faster than java

  6. #6
    Registered User
    Join Date
    Oct 2024
    Posts
    3
    Java is generally faster than Python due to its compiled nature and the Just-In-Time (JIT) compiler that optimizes performance. Python, being an interpreted language, often has slower execution times, especially for CPU-bound tasks. However, the speed difference can vary based on the specific use case and how the code is implemented.

  7. #7
    Senior Member
    Join Date
    Jan 2016
    Location
    India
    Posts
    373
    I haven't studied Python in school, I am in class 12, done with DSA of Java, and now thinking of learning Python before going to college.

  8. #8
    Registered User
    Join Date
    Jul 2023
    Posts
    15
    Quote Originally Posted by charlesprabhu View Post
    Java and Python zumba workout are two of the most popular programming cbd drops languages. Of the two, Java is the faster language, but Python is simpler and easier to learn
    Java and Python are two of the most popular programming languages, each with its own set of strengths. Java is known for being the faster language, with better performance in terms of execution speed. This makes it a preferred choice for large-scale applications, systems programming, and environments where speed is crucial. On the other hand, Python is considered simpler and easier to learn, making it a great choice for beginners and those who prioritize ease of development. Python’s syntax is more intuitive and concise, which allows for faster prototyping and development of applications, especially in fields like data science, machine learning, and web development. While Java may excel in performance, Python’s simplicity and versatility have made it a favorite among developers across various domains.

  9. #9
    Senior Member
    Join Date
    Jan 2016
    Location
    India
    Posts
    373
    Quote Originally Posted by MayaSmith View Post
    Python is more faster than java
    Java is faster for computationally heavy, multi-threaded, or large-scale applications.
    Python is "faster" in terms of development time, rapid prototyping, and areas where its extensive libraries excel.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.