Java Language is better than C Language?

Java Language vs C Language


6 Answers
1-6 of  6
6 Answers
  • Java is better than C for the following reasons :
    1) Application Development:
    Java is good candidate for developing
    * Web(Spring, Play), Mobile (Android, Blackberry), Big Data Applications (Hadoop), even machine learning programs, which serves its purpose far better than any other language.
    * Community adoption
    * Out of box, mature, stable set of framework ecosystem e.g Spring Tool Suit, Apache Spark
    * Open source projects and plenty of libraries
    * Stable and streamlined
    * Easy to port across platform
    While C++ is better candidate for software development ranging from system softwares to general purpose applications.
    2) Productivity:
    Java gives feeling of instant productivity for developer as most of things are abstracted like memory management, pointers, build process. Also there are great development tools (so called IDE's) available for java like IntelliJ, Eclipse to make java application development easier.
    3) Computer Science or Language Design:
    I heard from the one of professor that, Java is much better language than C++ in terms of design aspects. For an instance "friend function in C++" don't you think its breaking the rule OOP encapsulation and over rated feature in C++? Design aspect, OOP philosophy of java is much better than C++. As java evolved later than C++ it tried to address pitfalls of C++ from early stage.

  • One of the major difference between Java and C Language is that Java is Object Oriented Programming Language while C is not. C Programming is a low-level programming language whereas in case of Java it is a high-level programming language.

    Ever worked with memory management in C Language? then you must have an idea about malloc and free functions which were used for memory management. i.e in C programming, the memory management is in the hand of a programmer whereas in Java the memory management is behind the scene. Java uses a garbage collector that removes the objects that no longer have any references to them.

    Method overloading is only supported in Java and not in C Language, Java is better for web projects than C Language, and there are many reasons. 

    Note that they both are used for different purposes.


  • C might be a little hard to learn programming concepts.
    Java is a great learning langauge for OOP.

    Some other interpreted languages like Ruby, Python or Perl might give you other ideas what to do or learn.

    Languages are designed for a purpose, there's really no better or worse.
    It mostly depends on what you are aiming for.

    I prefer compiled languages that result in machine code, but of course Java is used widely in enterprise environments where cross-platform ailability is more important than special features.

  • yes, Jva is better than c language.Some reasons are:
    1. There is no concept of pointers.Hence, more secure.
    2. Exception handling provided.
    3. Based on OOP concepts unlike c.
    4. Java is higl level language.
    5. Platform independent as JVM present.
    6.C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up {on the rocks}approach.
    7.C breaks down to functions while JAVA breaks down to Objects. C is more procedure-oriented while JAVA is data-oriented.
    8. Unlike C, JAVA does not support Preprocessors, & does not really them.
    9. Java supports multi inheritence using interfaces.
    10. JAVA supports Method Overloading while C does not support overloading at all.

  • first, you understand which method is for what we use, 'C' is the structural language whereas Java is Object oriented language base on oops concept.
    for the console application, standalone application C is strongly recommended.
     and for other, we can use Java.
     
    Both languages have its own importance we cant compare them.
    it's all about preference.
     

  • 1. JAVA is Object-Oriented while C is procedural. Different Paradigms, that is.
    Most differences between the features of the two languages arise due to the use of different programming paradigms. C breaks down to functions while JAVA breaks down to Objects. C is more procedure-oriented while JAVA is data-oriented.
    2. Java is an Interpreted language while C is a compiled language.
    We all know what a compiler does. It takes your code & translates it into something the machine can understand-that is to say-0’s & 1’s-the machine-level code. That’s exactly what happens with our C code-it gets ‘compiled’. While with JAVA, the code is first transformed to what is called the bytecode. This bytecode is then executed by the JVM(Java Virtual Machine). For the same reason, JAVA code is more portable.
    3. C is a low-level language while JAVA is a high-level language.
    C is a low-level language(difficult interpretation for the user, closer significance to the machine-level code) while JAVA is a high-level lagunage(abstracted from the machine-level details, closer significance to the program itself).
    4. C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up {on the rocks} approach.
    In C, formulating the program begins by defining the whole and then splitting them into smaller elements. JAVA(and C++ and other OOP languages) follows the bottom-up approach where the smaller elements combine together to form the whole.
    5. Pointer go backstage in JAVA while C requires explicit handling of pointers.
    When it comes to JAVA, we don’t need the *’s & &’s to deal with pointers & their addressing. More formally, there is no pointer syntax required in JAVA. It does what it needs to do. While in JAVA, we do create references for objects.
    6. The Behind-the-scenes Memory Management with JAVA & The User-Based Memory Management in C.
    Remember ‘malloc’ & ‘free’? Those are the library calls used in C to allocate & free chunks of memory for specific data(specified using the keyword ‘sizeof’). Hence in C, the memory is managed by the user while JAVA uses a garbage collector that deletes the objects that no longer have any references to them.
    7. JAVA supports Method Overloading while C does not support overloading at all.
    JAVA supports function or method overloading-that is we can have two or more functions with the same name(with certain varying parameters like return types to allow the machine to differentiate between them). That it to say, we can overload methods with the same name having different method signatures. JAVA(unlike C++), does not support Operator Overloading while C does not allow overloading at all.
    8. Unlike C, JAVA does not support Preprocessors, & does not really them.
    The preprocessor directives like #include & #define, etc are considered one of the most essential elements of C programming. However, there are no preprocessors in JAVA. JAVA uses other alternatives for the preprocessors. For instance, public static final is used instead of the #define preprocessor. Java maps class names to a directory and file structure instead of the #include used to include files in C.
    9. The standard Input & Output Functions.
    Although this difference might not hold any conceptual(intuitive) significance, but it’s maybe just the tradition. C uses the printf & scanf functions as its standard input & output while JAVA uses the System.out.print & System.in.read functions.

1-6 of  6
Programming in Java
Practice Mock Test
Programming in Java