Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What will be the output of the following code snippet?
What will be the output of the following code snippet?
✍: Guest
What will be the output of the following code snippet?
using System;
class MainClass
{
static void Main( )
{
new MainClass().Display( 3.56 );
}
private void Display( float anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg );
}
double Display( double anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg );
return anArg;
}
public decimal Display( decimal anArg )
{
Console.Write( “{0} {1}â€, anArg.GetType(), anArg ); return anArg;
}
}
* System.Single 3.56
* System.Float 3.56
* System.Double 3.56
* System.Decimal 3.56
System.Double 3.56
2014-09-02, 2024👍, 0💬
Popular Posts:
What Tools to Use to View HTML Documents? The basic tool you need to view HTML documents is any Web ...
Can you explain why your project needed XML? Remember XML was meant to exchange data between two ent...
How To Wirte a Simple JUnit Test Class? This is a common test in a job interview. You should be able...
What is the difference between Class and structure’s ? Following are the key differences between the...
How can I show HTML examples without them being interpreted as part of my document? Within the HTML ...