+ Reply to Thread
Results 1 to 3 of 3

Thread: What is the default value of the local variables?

  1. #1
    SuperExpert sydneyearplug is on a distinguished road
    Join Date
    Jul 2017
    Location
    india
    Posts
    717

    What is the default value of the local variables?

    What is the default value of the local variables?

  2. #2
    Hosting Master Krina is on a distinguished road
    Join Date
    Jun 2018
    Location
    India
    Posts
    275
    here is no default value for local variables.
    Only the class varibles have default value.Example int take 0 as default value ,char take uoooo,string as null.

  3. #3
    HWHT Addict amandalove is on a distinguished road
    Join Date
    Nov 2018
    Location
    USA
    Posts
    37
    Default values are same as instance variables. For numbers, the default value is 0; for Booleans, it is false; and for object references, it is null. Values can be assigned during the declaration or within the constructor.

+ Reply to Thread

Similar Threads

  1. change the default SSH port 22
    By thewebhostingdir in forum Technical and Security Tutorials
    Replies: 4
    Last Post: 07-18-2018, 08:54 PM
  2. How to optimize Local Search and Target local customers?
    By jasmin.london in forum Search Engine Optimization
    Replies: 1
    Last Post: 01-26-2018, 11:15 AM
  3. What is the prefix of wordpress tables by default?
    By designpluz in forum Web Design and Content
    Replies: 0
    Last Post: 09-11-2017, 09:05 AM
  4. How many tables are there in WordPress by default?
    By designpluz in forum Web Design and Content
    Replies: 0
    Last Post: 09-11-2017, 09:02 AM
  5. Default Best price for a budget dedi server ?
    By hostaddonltd in forum Dedicated Server Forum
    Replies: 10
    Last Post: 01-05-2015, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts