曹凯 发表于 2013-8-16 15:06:32

[Oracle interview]What is the difference between declaring a variable and defining a variable?

于军 发表于 2013-8-16 15:22:05

Indeclaration we just mention the type of the variable and it's name. We do notinitialize it. But defining means declaration + initialization.             e.g String s; is just adeclaration while String s = new String ("abcd"); Or String s ="abcd"; are both definitions.
页: [1]
查看完整版本: [Oracle interview]What is the difference between declaring a variable and defining a variable?