Question & Additional Information
 
Why there are no global variables in Java?
Add to My IQ
 

Answer Title
Answer

Global variables are globally accessible. Java does not support globally accessible variables due to following reasons:
* The global variables breaks the referential transparency
* Global variables creates collisions in namespace.

As Java is OOP language, it focuses on data security, where the data field values can only be accessed by the methods that define it.
Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles
None


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Be the first one to answer the question Click here to answer
Create Date
:
Monday, March 23, 2009
Tags
:
None
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
I feel as though that even in my day to day life customer service is what I was made to do. And most importantly its what I love to do, and I do it well. Im capable and able to do this job so I strive to be the best at it.
Create Date
:
Friday, November 02, 2007
Asked At
:
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (1) :
1.
VJ
Tuesday, January 01, 2008 9:18 AM
In anyones career choosing right profession is very vital. I chose this career because it provides me gives me opportunity to improve business knowledge, interaction with clients, keeps in competition with continuous learning, last but important it provides opportunity to grow strictly on performance.
Flag this interview question as inappropriate Inappropriate
See Answer
There are 3 main uses for the static.
1. If you declare within a function:
It retains the value between function calls

2.If it is declared for a function name:
By default function is extern..so it will be visible from other files. if the function declaration is as static, it is invisible for the outer files

3.Static for global variables:
By default we can use the global variables from outside files If it is static global..that variable is limitied to with in the file
Create Date
:
Tuesday, September 11, 2007
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (1) :
1.
anujtripathi
Thursday, October 16, 2008 10:42 AM
Gud Xplanation !
Flag this interview question as inappropriate Inappropriate
See Answer
An objective person can compartmentalize their feelings, and has to in order to be objective. They cannot let their feelings get in the way of their thought processes. They rely on data and facts, not emotion when considering things. Depending on what the "question" is, they may consider the emotions of themselves and others as "factors" but do not allow them to control their thinking.

If a person is getting all emotional, if they're making fast defensive statements, they're not being objective. They may be "rational" but that is not the same thing as objective.

One of the Merriam Webster definitions of objective is: "expressing or dealing with facts or conditions as perceived without distortion by personal feelings, prejudices, or interpretations"

My Answer: No. I find that objective people, are usually,very difficult to have a sensible discussion with.
Most things in life are subjective and anybody who isn't aware of this, is probably, very young, or very limited in their perception and experience, of life.
Create Date
:
Friday, July 11, 2008
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (3) :
1.
confucious
Tuesday, July 29, 2008 1:57 PM
I am a confused ..confused person :-)
2.
confucious
Tuesday, July 29, 2008 1:56 PM
I am a confused ..confused person :-)
Flag this interview question as inappropriate Inappropriate
See Answer
A Java programming language object that implements the behavior of a custom tag.
Create Date
:
Tuesday, May 13, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
no
Create Date
:
Saturday, June 07, 2008
Tags
:
None
Asked At
:
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
 
• More Related Questions: 
Suggestions & Comments




Share Your Interview Questions
Ask Interview Questions
View Unanswered Questions

















Advertise on this site