answersLogoWhite

0

Why can't java compiler initialize local variables?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

Its not that the compiler can't initialize local variables; its that the compiler does not initialize local variables.

This is by design and language specification. If you want to initialize local variables, you must explicitly do so.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why can't java compiler initialize local variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can extraneous variables be controlled?

no the variables cant be controlled.


How do you show the relationship between two variables?

you cant because variables cant go ou its agaist the rules


Why cant you can do all programs in one compiler?

Not all programs are written in the same programming language. Every compiler can translates only one type of language into object code.


Can an abstract method be declared static in java?

No you cant, any compiler I've ever used wont allow this. It would not make any sense to do this anyway. because the JVM directly accesses ur top class without instantiating it. Though for accessing the instance data members, the class must need to be instantiated.


Why cant you draw a conclusion about the effect of one variable in an investigation when the other key variables are not controlled?

If none of the variables are constant (or controls) you have no idea which variable or combination of variables caused the effect.


What are the importance of turbo c?

i came to know about that turbo c compiler is having 32 number of disadvantages........ i know about 10-12 disadvantages and i am sharing those wid u .... 1) Turbo c is a 16bit compiler ... means it can access about 16bits of data at a time... 2)Turbo c is based upon 8086 microprocessor... and it can run on x86family.... 3) Turbo c is derived from MS-DOS whereas GCC compiler which runs on linux..is a very good one as compared to Turbo C compiler..,.. 4)Also we cant do ODBC and Networking programming over the Turbo C comiler whereas we can do above programming in GCC compiler successfully by installing one ODBC library in it.... 5)we cant do graphics programming over here, rather we can do graphics programming. in GCC compiler using Glad Interface... 6) Turbo C compiler can access only 1mb of RAM, which is a demerit...whereas GCC compiler can access 4gb OF MEMORY.. 7) 7) Turbo C compiler is based upon MS DOS operating system.. which is a single process operating system..whereas GCC Compiler is based on 80386 processor(LINUX) and it is multiprocess operating system.....


Is C programming works without assembler compiler interpreter?

No, a C program cant work without an interpreter or compiler or assembler as the code written in the program is not understood directly by the computer so it needs any of the above translator program to make the program understandable to the computer.-Shruti Jain


How do you open a C file as an executible file?

In a canonical C compiler, you type "cc (program file name).c (return) and it spits out "a.out", which is an executable. Works with the original Kernighan and Ritchie C compiler. For C++, use the .cpp extension and "g++" for the compiler: In a terminal window, on MacOS, 'cc (program name).c (return)' 'g++ (program name).cpp (return)' produces an executable named "a.out", which can be run. '-o (some file name . extension) will change the output file name.


Difference between field and local variable?

Well, hehe its quite simple. You must be a dumb little nerd if you cant find it out. I suggest taking Pre IB computers and eating cherrios for breakfast to clear your mind. Maybe after a hot shower with your rabbit youll be able to brainstorm through the ultimate collage of confusion!


Where can you buy peanut butter chips Cant find in my local stores?

mabie at walmart


How do you play 2 player co op on ghostbusters?

no you cant play local multiplayer


Why can't state or local governments control air and water?

local governments cant control it because air and water is mother nature and nobody can control her.