Question

In: Computer Science

How would you characterize the performance of Java-based code relative to the same program written (competently)...

How would you characterize the performance of Java-based code relative to the same program written (competently) in C#?

Solutions

Expert Solution

Following are the characterization of the program written in c# and that in java Language:--

Difference Between C# and Java Performance

1. C# usually knows as C Sharp or C-Sharp, is object-oriented programming, also called as OOP is a language used in Web development and networking.Programming language java develops software for several platforms. A compiled code or bytecode on Java application can run on most of the operating systems including Linux, Mac operating system, and Linux. Most of the syntax of Java is derived from the C++ and C languages.

2.Being an Object-Oriented Programming Language, Java develops the OOP application relatively easier than C# and other programming languages. Java advances the extensibility and flexibility of the system and makes it modular. Java Doesn’t have many implementation dependencies like C#.

3.C# allows enumerations, whereas, Java doesn’t include enumeration .JAVA doesn't allow enumeration.

4.C# has a bool that is a strict Boolean data variable type. Whereas, Java bool variable types might return as pointers or integers to prevent prevalent errors that are involved in programming.

5. Java objects do not consist of any reference to external data. It is being executed on the client instead of the server that enables it to run faster than any other programming language.Java Programs offer portability in the network. Moreover. Java-based websites and applications will not work until and unless Java is installed on your device.

6. Java is suited for developing complex web related projects whereas c# is suited for gaming Based projects.

7. In java the source code is compiled into byte code which is ready to be run on any platform whereas in c# the code compiled could be run on Microsoft platforms generally.

8.Java library ecosystem is vast and well documented which further assist in developing functionality at a decent pace whereas C# libraries work within the Microsoft ecosystem, which is limited as compared to Java.

HERE IS A TABULAR DIFFERENCE I HAVE PREPARED ON THE BASIS OF ALL THE ABOVE POINTS AND SOME EXTRA DIFFERNECS:--

C# JAVA
1.C# runs on CLR. 1.It runs on JVM.
2.C# needs .Net framework to run. 2,JDK is required for Java.
3.Not as efficient as Java. 3.
Very efficient, flexible and cross platform compatible
4.Decent server side performance. 4.Useful for server side interaction.
5.C# can be used to develop both Web, and Game development along with Mobile development. 5.Java is mainly used for designing complex web applications.

LET ME KNOW IF YOU NEED EVEN MORE DETAILS..


Related Solutions

Must be written in JAVA Code Modify the program you created in previous project to accomplish...
Must be written in JAVA Code Modify the program you created in previous project to accomplish the following: Support the storing of additional user information: street address (string), city( string), state (string), and 10-digit phone number (long integer, contains area code and does not include special characters such as '(', ')', or '-' Store the data in an ArrayList object Program to Modify import java.util.ArrayList; import java.util.Scanner; public class Address { String firstname; String lastname; int zipcode;    Address(String firstname,String...
JAVA code - please answer all prompts as apart of the same java program with Polymorphism...
JAVA code - please answer all prompts as apart of the same java program with Polymorphism Classwork Part A ☑ Create a class Employee. Employees have a name. Also give Employee a method paycheck() which returns a double. For basic employees, paycheck is always 0 (they just get health insurance). Give the class a parameterized constructor that takes the name; Add a method reportDeposit. This method prints a report for the employee with the original amount of the paycheck, the...
Private colleges of the same caliber generally charge roughly the same tuition. Would you characterize these...
Private colleges of the same caliber generally charge roughly the same tuition. Would you characterize these colleges as a cartel type of oligopoly? Suppose an air-quality law is passed that requires 3.75 percent of all the cars sold to emit zero pollution. What would be the likely impact of this law? Can you think of any way in which this law might actually increase pollution rather than decrease it? How might an economist suggest modifying this law to better achieve...
how would you characterize the culture of NASA?
how would you characterize the culture of NASA?
Written in JAVA Code Write a program that inserts 25 random integers from 0 to 100...
Written in JAVA Code Write a program that inserts 25 random integers from 0 to 100 in order into a LinkedList object. The program should sort the elements, then calculate the sum of the elements and the floating-point average of the elements.
Program should be written in Java b) The computer program should prompt the user (You are...
Program should be written in Java b) The computer program should prompt the user (You are the user) to enter the answers to the following questions: What is your city of birth? What is your favorite sport? If you could live anywhere in the world, where would you like to live? What is your dream vacation? Take this information and create a short paragraph about the user and output this paragraph. You may use the Scanner class and the System.out...
This program is to be written in Java Language. Thank you A College has conducted a...
This program is to be written in Java Language. Thank you A College has conducted a student survey. Students were asked to rate their satisfaction with remote learning courses. Students rated their satisfaction on a scale of 1 to 5 (1 = "I hate it", 5 = "I love it"). The student responses have been recorded in a file called "StudentResponses.txt". Each line of the file contains one student response. Program 1 You are to write a program that reads...
How would you characterize the men in the play "Trifles"?
How would you characterize the men in the play "Trifles"?
Can you provide java code for a program that prompts the user by asking "How many...
Can you provide java code for a program that prompts the user by asking "How many one mile races have you ran?". After the user inputs how many one mile races have they run it then prompts the user to input how many seconds it took for them to finish each race. So for example, if the user ran 6 races then the user will have to input 6 race times. Is there a way when you prompt the user...
Program should be written in Java a) Write a program that asks the user to enter...
Program should be written in Java a) Write a program that asks the user to enter the approximate current population of India. You should have the computer output a prompt and then YOU (as the user should enter the population.)  For testing purposes you may use the value of 1,382,000,000 from August 2020. Assume that the growth rate is 1.1% per year. Predict and print the predicted population for 2021 and 2022. The printout should include the year and the estimated...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT