Search
.Management Sciences
Category: Java concepts and its programming
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class?
0
A. abstract
B. static
C. volatile
D. final
Which among following classes is not part of Java’s collection framework ?
A. Stack
B. Maps
C. Queue
D. Array
Which command is used for interpretation of java program_______________?
A. Java
B. javap
C. javac
D. none of above
Size of float and double in Java is________________?
A. 32 and 64
B. 64 and 64
C. 32 and 32
D. 64 and 32
Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } } ?
A. The program has a compilation error because we cannot assign radius to radius.
B. The program has a compilation error because it does not have a main method.
C. The program does not compile because Circle does not have a default constructor.
D. The program will compile, but we cannot create an object of Circle with a specified radius. The object will always have radius 0.
After the compilation of the java source code, which file is created by the JVM ?
A. .class
B. .doc
C. .java
D. .cdr
Recent Comments