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...


What is static variable and static method?

Answers were Sorted based on User's Feedback



What is static variable and static method?..

Answer / aravind

a variable declared inside a method is local to that method.
it can't be accessed outside the method. if a variable
declared in a class means its a global variable.if we
declare a variable with static keyword in a class means it
can be accessed by all the class.

Is This Answer Correct ?    18 Yes 22 No

What is static variable and static method?..

Answer / ravikiran(aptech mumbai)

static variable is a class variable which value remains
constant for the entire class
static method is the one which can be called with the class
itself and can hold only the staic variables

Is This Answer Correct ?    43 Yes 63 No

Post New Answer

More Core Java Interview Questions

Which package has light weight components?

0 Answers  


Why enumeration is faster than iterator?

0 Answers  


What is fundamental datatype?

0 Answers  


how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access?

1 Answers   Verizon,


What’s the difference between unit, integration and functional testing?

0 Answers  


Why there is no call by reference in java?

0 Answers  


what is difference between signed & unsigned char?

2 Answers  


Can we increase size of array?

0 Answers  


Can array grow dynamically in java?

0 Answers  


What is primitive array?

0 Answers  


What is JVM ?

4 Answers   Phantom Technologies, TCS,


Is 0 a prime number?

0 Answers  


Categories