Can extern variables be initialized?



Can extern variables be initialized?..

Answer / Dhram Pal

No, external (static) variables in Core Java are not automatically initialized. They must be explicitly initialized before they can be used.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the elements of java?

1 Answers  


Tell me about different OOPS concepts.

1 Answers   Amdocs,


Functionality of JVM?

7 Answers   Infosys,


How do you escape a string?

1 Answers  


What is cr keyboard?

1 Answers  


How to do validation of the fields in any project ?

2 Answers  


What is this keyword in java?

1 Answers  


Can static method access instance variables ?

1 Answers  


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

1 Answers   Rolta,


What is Difference between Serializable and Externalizable in Java serialization?

1 Answers   Cognizant, IBM,


What is meant by Encapsulation? Can you write a class to explain encapsulation?

8 Answers   Ness Technologies,


What are the differences between string and stringbuffer?

1 Answers  


Categories