C# interview questions :- Explain typesafe,casting , implicit casting and explicit casting ?

Sdílet
Vložit
  • čas přidán 14. 10. 2024
  • For more such videos visit www.questpond.com
    For more such videos subscribe www.youtube.co...
    See our other Step by Step video series below :-
    Learn C# Step by Step goo.gl/FNlqn3
    Learn Design Pattern Step by Step:- goo.gl/eJdn0m
    Learn Angular tutorial step by step tinyurl.com/yc...
    Learn MVC Core step by step :- tinyurl.com/y9j...
    Learn Azure Step by Step :- tinyurl.com/y6...
    Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
    Python Tutorial for Beginners:- • Python Tutorial for Be...
    Learn Data Science in 1 hour :- tinyurl.com/y5...
    Learn Power BI Step by Step:- tinyurl.com/y6...
    Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
    Learn SQL Server Step by Step tinyurl.com/ja4...
    Learn Tableau step by step :- tinyurl.com/kh...
    This video explains typesafe,casting , implicit casting and explicit casting . Awesome video.
    Image Courtesy Sites: www.insurancejo... & www.kevinspear....
    We are also distributing a 200 page Ebook ".NET Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on
    questpond@questpond.com with the shared link and we will email you the PDF.

Komentáře • 28

  • @dnfvideo
    @dnfvideo  Před 3 lety

    Do not miss our Interview Question video series
    30 Important C# Interview Questions : czcams.com/video/BKynEBPqiIM/video.html
    25 Important ASP.NET Interview Questions : czcams.com/video/pXmMdmJUC0g/video.html
    25 Angular Interview Questions : czcams.com/video/-jeoyDJDsSM/video.html
    5 MSBI Interview Questions : czcams.com/video/5E815aXAwYQ/video.html

  • @alexk6745
    @alexk6745 Před 3 lety

    Excellent!!! Welldone! Was looking for my wife. Very good for beginners

  • @tangyorangegames7488
    @tangyorangegames7488 Před 2 lety

    Good explanation. Thanks

  • @subinrevi2268
    @subinrevi2268 Před 5 lety

    Excellent video..thanks for explaining with appropriate examples !

  • @sebbes333
    @sebbes333 Před 8 lety +3

    03:00
    This is *exactly* the same C# code;
    namespace Test
    {
    class Program
    {
    static void Main(string[] args)
    {
    var num = 5; // var takes whatever type is first assigned to it
    var str = "5";
    var result = num + str;
    Console.WriteLine(result); // Output: 55 without an error or warning
    }
    }
    }

    • @vidit1989
      @vidit1989 Před 7 lety

      Yes, you are right.
      But the primary focus here is to let us know that VAR in JAVA is used for all variables, but in C# we do have an option to select int/string etc.
      'var' in C# separates it from other data types, for this very reason, i.e. IT IS NOT TYPE-SAFE

    • @Damixx111
      @Damixx111 Před 7 lety +2

      vidit, nope not true. Var is type-inference, so it's exactly the same thing like string/int/some other type. It's just shorthand. What you're talking about is the keyword 'dynamic' which is indeed not typesafe and is determined at runtime, not at compile-time

    • @sidneylc281
      @sidneylc281 Před 5 lety

      Var in JavaScript is to define a variable without datatype, in C# if you use var, it will define your variable according the data. If you put var a = 5, it will define it as int, is the same if you put int a = 5. But once is defined with var as an int, you can't use it as string. That is a special dataype available in C#, it's not the same with JavaScript that when you put a number and then a string, it works as a string. Check out more about var keyword in C#

  • @mdrahbarahmedkhan
    @mdrahbarahmedkhan Před 4 lety +1

    This question was asked at Accenture Interview 😊 to me.

  • @tubetainment
    @tubetainment Před 3 lety

    Sir, I've one question. Why this=> (char c= 'a'; string str = c;) is an error? there is no question of data loss here, right?

  • @piyasidey2117
    @piyasidey2117 Před 5 lety

    And what about data loss or not data loss concept in conversion by convert method?

  • @rlavigne99
    @rlavigne99 Před 9 lety +3

    good video, thanks for taking the time :) i will subscribe and watch the rest from time to time.

  • @sumit84mca
    @sumit84mca Před 10 lety

    Sir I want to know what is the difference between Explicit Casting and Conversion at compiler level? How does memory allocated and de-allocated at time of casting or converting.

  • @gkmishra2009
    @gkmishra2009 Před 5 lety +1

    Difference between IList and List in C#

  • @gkmishra2009
    @gkmishra2009 Před 5 lety

    sir pls give video how call one web api from another web api

  • @gkmishra2009
    @gkmishra2009 Před 5 lety

    how c# is differ from other language??

  • @knight36
    @knight36 Před 7 lety

    Really enjoy your videos. You've a great knowledge base.
    Though I do giggle when you refer to a method or variable as 'him' or 'this guy' haha.
    Keep up the good work (Y)

  • @keno104
    @keno104 Před 10 lety +1

    LOL, great clear explanation :)

  • @raffy3304
    @raffy3304 Před 10 lety

    Thanks.

  • @Quest118
    @Quest118 Před 10 lety

    Thanks

  • @ravikant143
    @ravikant143 Před 10 lety +1

    thanks sir....

  • @gkmishra2009
    @gkmishra2009 Před 5 lety

    how consume wcf in web api

    • @dharmitvyas8547
      @dharmitvyas8547 Před 2 lety

      get wcf proxies in web api and call the wcf service from those proxies.

  • @himannamdari7375
    @himannamdari7375 Před 7 lety

    perfect tnx

  • @jamesjackson414
    @jamesjackson414 Před 10 lety +1

    Good video

  • @durgaprasadreddy5033
    @durgaprasadreddy5033 Před 4 lety

    To be honest, the explanation on conversion and casting is not clear. Internally conversion method might use casting at its core

  • @المعلمليوناردو

    good job boy

  • @yasser2768
    @yasser2768 Před 4 lety

    She sharp 😁