Java Theory
Java Theory
R
BACHELOR OF COMPUTER APPLICATIONS (B.C.A.)
EXAMINATION: NOVEMBER /DECEMBER 2016
FOURTH SEMESTER
Sub: Java (BCA-421)
try d catch
3. A class that is inherited is called the -
a) subclass b)Super class
c) inner class d) nested class
4. The operator dynamically allocates memory for an object.
a) arithmetic ) static
c) bitwise new
5. Object is an . of class.
a) instance b) inherit
c) handle d) referencee
2. is the class whose objects contain strings that can be modifled after
they are created.
a) string Buffer b)buffer
c) class d) string
3. Interfaces do not have varlables.
) int bJchar
c)instance d) data
4. Multithreading is specialised form of .
a) multi data b) multilevel
c) multiple d) Multitasking
5. The method which is commonly used to wait for a thread to fînish is _
a) join0 b)stop0
) sleep0 d)isAlive0
2. Write a java program to accept value from user and print its factorial
c) this d) class
4. The method which is commonly used to wait for a thread to finish is
a) isAlive()0 b} run()
c) main) d) join()
5. A class that is inherited is called the
a) superclass xtend
c) subclass d) derived
string b) buffer
c) string Buffer d) charAt