Programming Language in-depth Analysis
Student’s Name
Institutional Affiliation
Introduction
C# is a simple, object-oriented and modern multi-purpose programming language which was established by Microsoft. C# is very much based on C programming and C++ programming languages. C# is widely used for developing web applications, desktop applications and web services. Java is an object-oriented (OOP) cross-platform language, released by Microsystems back in 1995 as an essential element of Sun Microsysems (Wikipedia 2019). Java runs various applications for instance games, audio and video applications, web applications, social media applications among other applications. Normally Java applications get compiled to bytecode that runs on the JVM irrespective of the architecture of the computer.
Comparison of main language features
The following showcases the comparison between Java programming language and C# programming language with regards to the main features of the languages.
Run-time XXXXXXXXXXX:Java XXXXXXXXXXX XXXXXXXX XXXX on/ supports a JVM (XXXX Virtual XXXXXXX) whereas C# supports CLR (XXXXXX Language runtime).
XXXXXX1: XXXX XXXXXXX XXXXXXXXXXX
XX Java, the XXXXXXXX XXX compiled or rather XXXXXXXXX XXXX XXXXXXXX XX XXX ‘javac compiler’ which is saved to XXX disk XXXX a .class extension, which XXX XXX then executes XX runtime. XXXXXX XXXXXXX XXXXXXXXX, XXX XXXXXXXX (the .class file), is converted XX XXXXXXX XXXX XX XXX XXX compiler, fed XX the memory and executed.
XX Code
XXX.XXX / XXX.XXX
XX XXX C#, XXX XXX (XXXX in time) Compiler in XXX converts the XXXX XXXX XXXX XXXXXX machine code that is XXXX XXXXXXXX by the operating system. During the XXXXXXX runtime, XXX JIT XXXXXXXX XX XXX XXXX XXXXXXXX XXX converts MSIL (Intermediate Language) into native code.
Operator XXXXXXXXXXX:In Java, XXXXXXXX XXXXXXXXXXX XX XXX supported XXXXXX in X# XXXXX XX have support for XXXXXXXX overloading. (XXXXXXXX XXXXXXXXX)Public Classes:there can XX numerous public classes in a X# source code XXXXXXX in XXXX, an XXXXX would occur XXXXXX compilation XX there’s XXXX than XXX XXXXXX XXXXX in XXX XXXXXX XXXX.Platform Dependency:XXXX is platform XXXXXXXXXXX and robust XXXXXXXXXXX XXXXXXXX. XXX XXXXXXXX XXXXXXXXXXXX is XXXXXXX XX JVM (Java XXXXXXX machine). C# on XXX XXXXX XXXX XX runs XX Unix and XXXXXXX XXXXXXX.Pointers:Pointer in X# XXX only XX used in an unsafe mode XXXXXXX in Java there’s no XXXXXXX of XXX of XXXXXXXX.
XXXXXXXX class Animal
{...
}
class XXXX XXXXXXX XXXXXX
{...
}
XXXXX XXXXX extends Animal
{
XXXXXX XXXXXXXX() {...}
XXXXXX void growl(){...}
}
Buffallo XXXXX = XXXX;
XXXXXXXX XXXXXX = new Buffallo ();
Buffallo XXXXX;
XXX objects in Java are XXXXXXXXXX and you XXX use them like pointers
int *p = &XXX; x; Console.WriteLine((int)p)//XXXXXXX mem addrssConsole.XXXXXXXXX(*p)
//value @ XXX XXXXXXX
XXXXXXX Exceptions:XXXX supports both checked XXX unchecked exceptions XXXXXXX in C# there’s XX XXXXXXX XXX XXXXXXX XXXXXXXXXX which occasionally XXX useful during XXXXXXXXXX XX the XXXXXXX.Goto XXXXXXXXX:C# XXX ‘goto-statement’ XXXXXXX. XX for Java programming language, it doesn’t XXXX goto-XXXXXXXXX support, XXX XX used it XXXX cause an XXXXX in the XXXX CodeConditional XXXXXXXXXXX:X# has support for conditional XXXXXXXXXXX. The conditional XXXXXXXXXXX XXXXXXX one to declare XXXXXXXXX that XXXX XX XXXXXXXX when explicit XXXXXXX are XXXXXXX. Java XXXXXXXXXXX XXXXXXXX XX XXX other hand does XXX have support for XXXX conditional XXXXXXXXXXX. Conditional compilation commonly is XXXX alongside XXXXXXXXX used for debugging a XXXXXXX.XXX Control:in C# XXXXXXXXXXX, X# API is/ XXX XXXXXXX managed XX open-XXXXXX XXXXXXXXX. In java XXXXXXXXXXX, XXX Java XXX XXXX XXXX in C#, are also controlled XX an XXXX XXXXXXXXX XXXXXXX.XXXXXXXX XXXXX:XXXX has XXXXXXX XXX ‘strictfp’ XXXXXXX XXXXX XXXXX its result for a XXXXXXXX-XXXXX number is similar XXX XXXXXXX XXXXXXXXX whereas in C# XXXXX’s no XXXXXXX for XXX XXXXXXX ‘strictfp’, meaning the result XX a XXXXXXXX-point XXXXXX XX guaranteed XX be XXXXXXX XXXXXX XXX XXX platforms, XXXX XX, the XXXXXX XXX XX XXXXXXXXXXXX.XXXXXXXXX XXX Union:XX C# programming, XXXXX’s support for XXXXXXXXXX and XXXXXX XXXXXX XXXX programming XXXXX has no support for structures and XXXXXX.
References
XXXXXXXXX. 2020. “XXXX (XXXXXXXXXXX language).” XXXX XXXXXXXX September XX, XXXX.https://XX.XXXXXXXXX.org/w/XXXXX.php?XXXXX=Java_(programming_language)&XXX;action=XXXXXXX
Microsoft. XXXX “if (C# XXXXXXXXX)”https://docs.XXXXXXXXX.XXX/en-XX/dotnet/XXXXXX/language-reference/XXXXXXXXXXXX-XXXXXXXXXX/XXXXXXXXXXXX-if
C#XXXXXX. XXXX. “C# XXX XXX XXXXXXXX”XXXXX://www.c-sharpcorner.XXX/XXXXXXX/X-XXXXX-and-XXX-features/