What is static variable and static method?
Answers were Sorted based on User's Feedback
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 |
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 |
What are field variable and local variable?
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).
What is time complexity java?
How to transfer data from an Applet to Servlet ?
Why constructor has no return type?
briefley expalin about the packages
Can sleep() method causes another thread to sleep?
class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
What collections you have worked on? Internal working of Hashmap?
Explain about exception propagation?
How do you compare values in java?
What will be the default values of all the elements of an array defined as an instance variable?