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

What are field variable and local variable?

3 Answers  


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

0 Answers  


What is time complexity java?

0 Answers  


How to transfer data from an Applet to Servlet ?

1 Answers  


Why constructor has no return type?

0 Answers  


briefley expalin about the packages

3 Answers  


Can sleep() method causes another thread to sleep?

0 Answers  


class test { private static void main(String []adsf) { } } explain me that the above code is error or exception

3 Answers  


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


Explain about exception propagation?

0 Answers  


How do you compare values in java?

0 Answers  


What will be the default values of all the elements of an array defined as an instance variable?

0 Answers  


Categories