Answer Posted / muthusenthil
No, you can declare static variable only in static method
| Is This Answer Correct ? | 6 Yes | 19 No |
Post New Answer View All Answers
What is native method in java?
What are the classes of java?
Is array primitive data type in java?
When does a class need a virtual destructor?
What is the basic of java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What are the difference between string, string builder, and string buffer in java?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is the difference between the size and capacity of a vector?
What is byte [] in java?
What is a modifier?
What is the largest long allowed by java?
What is codebase?
Which containers use a flowlayout as their default layout in java programming?
Difference between overriding and overloading in java?