Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain Global variables in Packages?

Answers were Sorted based on User's Feedback



Explain Global variables in Packages?..

Answer / milind

i think der is no such thing global variable in java....
instance variable
local vaiable is in java

Is This Answer Correct ?    0 Yes 0 No

Explain Global variables in Packages?..

Answer / preetesh

There is no term as Global variable in Java.
Types of variable: 1) Local Variable declared within method.
2) Instance Variable declared within class but outside
method.
3) Class Variable
4) Parameters are also treated as variables

Example:
--------
public class Global {
public static int i = 25;
public static String s = "Preetesh";
}

//Such members can be accessed as:

public class Test {
public static void main(String[] args)
{
Global.i = Global.i + 100;
Global.s = "Java";
}
}

Is This Answer Correct ?    0 Yes 0 No

Explain Global variables in Packages?..

Answer / therathna

for what package r u asking

there is no meaning for Global variables in Packages

Is This Answer Correct ?    0 Yes 1 No

Explain Global variables in Packages?..

Answer / anitha

expect private,all public,protected and default variables
are global in a package

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the use of string and stringbuffer?

0 Answers  


What are the main uses of this keyword?

0 Answers  


Explain the concept of polymorphism with examples?

6 Answers   Summation Tech,


Why arraylist is used in java?

0 Answers  


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

0 Answers   IBM,


How do you override a private method in java?

0 Answers  


what is static import in java? Explain

0 Answers  


What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?

2 Answers  


What is the private method modifier?

0 Answers  


What is the program development process?

0 Answers  


What should I import for arraylist in java?

0 Answers  


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

0 Answers   Bravura Solutions,


Categories