java Online Bits - B.Tech JNTU by SatheeshAk


									                        VEMU INSTITUTE OF TECHNOLOGY

1. OOP allows us to decompose a problem into a number of entities called ________-

  a. Object        b. classes       c. Data              d. function

2. The combination of data and method make up on
  a. Function              b. Object                d.class
3. The entire set of data & code of an object can be made a ________ data type using the
      concept of class

  a. User-define                      b. static                  c. global            d. derived

4. The wrapping up of data & methods into a single unit is called as _________

  a. Inheritance           b. polymorphism               c. Encapsulation

5. _____provide the interface between the object’s data & the program

a. Data                    b. class                      c. methods

6. The concept of inheritance provides the idea of _____________

  a. Taking more than one form           b. reusability          c. data hiding       d.none

7. The process of linking of a procedure call with the code to be executed is called as________

    a. Binding           b. Loading               c. assembling              d.none

8. The development tools are part of the system known as __________

      a. JDK               b. JSL             c. java compiler               d.none

9. __________________ produces header files for use with native methods

      a. javac             b. java            c. javah           d. javadoc

10. ______contains collection of classes and methods required for implementing basic features of java

      a. Utility package     b. I/O package                c. language support package         d)none
11. Instance variables are created when the objects are i________and therefore they are associated
      with the objects

     a. Declared        b. defined          c. instantiated d.none

12. java follows_______charecteristics

    a.ASCII             b.ISCII             c.unicode        d.BCD

13. ____________ is use to convert the value of one type to another

     a. Data type       b. variable         c. typecasting     d.none

14._________run periodically checking for the objects that are no longer referenced by any running
     state or indirecly through other referenced ojects

      a.garbage collector    b.debugger          c.loader          d.none

15.when a method in its subclass has the same name and type signature as a method in the subclass is
     said to be__________

      a.overloading     b.override              c.loading              d.none

16.To implement an interface a class must create a the complete set of ______defined by a interface

    a.methods           b.functions              c.object               d.class

17. Instance variables take ______________ values for each object

     a. Different                 b. same            c. non-zero                  d.none

18. The property or the ability to take more than one form is called as _____________

     a. Encapsulation             b. Polymorphism            c. inheritance       d.none

19._____is used to separate package names from subpackages from classes

      a.period        b.comma         c.semicolon        d.paranthesis

20.______________-translates byte code into machine code

     a. Java interpreter          b. java compiler      c. assembler     d.none

1. Explain the object oriented programming concepts?
2. Describe the genesis of java. Also write brief overview of java?
3. a)What is a constructor? What are its special properties?
   b) How do we invoke a constructor?

4. How do declare and create an array? Is an array an object or a primitive
type value? Write simple example program?
5. What is package? Explain the procedure to create a package with the help
of example

To top