Java Programming - Part-0
AGuido van Rossum
BJames Gosling
CDennis Ritchie
DBjarne Stroustrup
Correct Answer
James Gosling
Correct Answer
JDK
AObject-oriented
BUse of pointers
CPortable
DDynamic and Extensible
Correct Answer
Use of pointers
Aidentifier & keyword
Bidentifier
Ckeyword
Dnone of the mentioned
Correct Answer
keyword
AMultiple polymorphism
BCompile time polymorphism
CMultilevel polymorphism
DExecution time polymorphism
Correct Answer
Compile time polymorphism
Abreak
Bcontinue
Cfor()
Dif()
Correct Answer
if()
AArrayList
BAbstract class
CObject class
DString
Correct Answer
Object class
AProtected
BVoid
CPublic
DPrivate
Correct Answer
Void
A0 to 256
B-128 to 127
C0 to 65535
D0 to 32767
Correct Answer
0 to 65535
ASerialization
BVariable Shadowing
CAbstraction
DMulti-threading
Correct Answer
Variable Shadowing
AAn object created by using the new keyword.
BAn object of a superclass created in the subclass.
CAn object without having any name but having a reference.
DAn object that has no reference.
Correct Answer
An object that has no reference.
AA final method cannot be overridden in its subclasses.
BA final class cannot be extended.
CA final class cannot extend other classes.
DA final method can be inherited.
Correct Answer
A final class cannot extend other classes.
AStack
BString memory
CHeap memory
DRandom storage space
Correct Answer
Heap memory
Anotify(), wait( long msecs ), and synchronized()
Bwait( long msecs ), interrupt(), and notifyAll()
Cnotify(), notifyAll(), and wait()
Dsleep( long msecs ), wait(), and notify()
Correct Answer
notify(), notifyAll(), and wait()
Correct Answer
10
ATight Coupling
BCohesion
CLoose Coupling
DNone of the above
Correct Answer
Tight Coupling
Asuper
Bthis
Cextent
Dextends
Correct Answer
extends
Apublic member
Bprivate member
Cprotected member
Dstatic member
Correct Answer
private member
Aclass B + class A {}
Bclass B inherits class A {}
Cclass B extends A {}
Dclass B extends class A {}
Correct Answer
class B extends A {}
Aupper
Bsuper
Cthis
Dnone
Correct Answer
super
AMultiple inheritance using classes
BMultiple inheritance using interfaces
CMultilevel inheritance
DSingle inheritance
Correct Answer
Multiple inheritance using classes
Asuper
Bconstant
Cclass
Dfinal
Correct Answer
final
AObject class
Babstract class
CArrayList class
DNone of the mentioned
Correct Answer
abstract class
AMethods
BVariables
CInterfaces
DAll the above
Correct Answer
Variables
AInitializing
BInstantiating
CInterfacing
DNone of the above
Correct Answer
Instantiating
ACompile-time
BRun time
CAssembling time
DNone of the above
Correct Answer
Run time
AMyClass obj = new MyClass();
BMyClass obj = new MyClass;
Cobj = new MyClass();
Dnew MyClass obj;
Correct Answer
MyClass obj = new MyClass();
Amalloc
Balloc
Cnew
Drealloc
Correct Answer
new
AMemory
BVariable
CReference
DNone
Correct Answer
Reference
AHeap
BPile
CStack
DAll of these
Correct Answer
Heap
AFunction
BConstructor
CClass
DMethod
Correct Answer
Constructor
AClass
BVariable
COperator
DObject
Correct Answer
Object
AObjects
BVariables
CCells
DMemory spaces
Correct Answer
Objects
AModifiers
BOperators
CMethods
DNone of these
Correct Answer
Modifiers
Apublic
Bnew
Cstatic
Dprivate
Correct Answer
static
Apolymorphism
BAbstraction
CInheritance
DEncapsulation
Correct Answer
Inheritance
Ais-a
Bits-a
Chas-a
Dis-at
Correct Answer
is-a
AMethod overloading
BMethod overriding
CDuplicate methods
DAll
Correct Answer
Method overloading
Apublic
Bprivate
Cprotected
Ddefault
Correct Answer
protected
AInstance
BPrivate
CLocal
DGlobal
Correct Answer
Instance
Abreak
Breturn
Cexit
Dcontinue
Correct Answer
continue
Aif
Bif-else
Cswitch
Ddo-while
Correct Answer
do-while
Ajava.util
Bjava.lang
CArrayList
DNone of the mentioned
Correct Answer
java.lang
Aget()
BSizeof()
Clengthof()
Dlength()
Correct Answer
length()
ACHARAT()
Bchatat()
CcharAt()
DChatAt()
Correct Answer
charAt()
AString()
BString(void)
CString(0)
DNone of the mentioned
Correct Answer
String()
Aequals()
BEquals()
Cisequal()
DIsequal()
Correct Answer
equals()
AMethod overloading
BConstructor overloading
CMethod overriding
DBoth A and B
Correct Answer
Both A and B
Aclass
Bclass fields
Cclass methods
DAll of the above
Correct Answer
All of the above
Astatic
Bconstant
Cprotected
Dfinal
Correct Answer
final
Aintf
BIntf
Cinterface
DInterface
Correct Answer
interface
Ajava.io
Bjava.system
Cjava.lang
Djava.util
Correct Answer
java.lang
ARunnable Interface
BMarker Interface
CAbstract Interface
DCharSequence Interface
Correct Answer
Marker Interface
Apackage
Bimport
Cextends
Dexport
Correct Answer
import
AAn interface can extend multiple interfaces
BA class can implement multiple interfaces.
CJava support multiple inheritance using interfaces.
DAll of the above.
Correct Answer
All of the above.
Aimport pkg.
BImport pkg.
Cimport pkg.*
DImport pkg.*
Correct Answer
import pkg.*
Alang
Bjava
Cutil
Djava.packages
Correct Answer
java
APublic
BProtected
Cprivate
DAll of the mentioned
Correct Answer
Public
Aabstract
Bstatic
Cfinal
Dprivate
Correct Answer
abstract
Aprivate or protected
Bfinal
Cabstract
DAll the above
Correct Answer
All the above
AClasses
BSub Packages
CInterfaces
DAll of the above
Correct Answer
All of the above
Apackages
Bnested packages
Cutil subpackages
Dsubpackages
Correct Answer
subpackages
Aclass C implements A, B
Bclass C implements A, implements B
Cclass C implements A extends B
Dclass C implements A.B
Correct Answer
class C implements A, B
ACLASSPATH
BPATH
CJAVAPATH
DCOMPILERPATH
Correct Answer
PATH
ACommand line
BControl panel
CBoth A and B
DJava compiler
Correct Answer
Both A and B
APATH
BSet PATH
CShow PATH
DDisplay PATH
Correct Answer
Set PATH
AJava compiler
BJava interpreter
CJava tools
DAll of the above
Correct Answer
All of the above