Programming - Methods in Java

You Are Here :: Home > JAVA > Methods in Java - General Questions

 
19.

A class variable is a variable whose single copy in memory is shared by ___________ objects.                        


A. one B. two or more
C. all D. none




20.

Is Instance variables are not available to static methods or not?                        


A. Yes B. No
C. cant say D. May be




21.

A ____________ block is a block of statements declared as Static.                        


A. Instance B. abstract
C. Static D. Non Static




22.

Is it possible to compile and run a java program without writing main()?                        


A. Yes B. No
C. cant say D. May be




23.

A ______________ variable is a variable i.e. declared locally inside a method and is available only within that method.                        


A. local B. global
C. both D. static




24.

____________________ is a keyword that refers to the objet of the class where it is used                        


A. static B. this
C. super D. extends




« prev

1

2

3

4

5

6

7

8

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on