• 1. 
    Inheritance

  • Enables to add additional features to an existing class without modifying it
  • Supports the concept of hierarchical classifications
  • Is a process by which objects of one class acquire the properties of objects of another class
  • All of these
  • 2. 
    Java

  • Compiler generates byte code instructions
  • Is a true object oriented language
  • Is a robust language
  • All of these
  • 3. 
    The operator 1 is

  • Logical AND
  • Logical OR
  • Equality
  • One’s complement
  • 4. 
    Which of the following statement is/are correct?

  • A thread is a simple flow of control
  • Every program will have at least one thread
  • The ability to execute several programs simultaneously, is called multithreading
  • All of these
  • 5. 
    By invoking repaint ( ) for a component, the AWT invokes the method

  • Draw ( )
  • Paint ( )
  • Show ( )
  • Update ( )
  • 6. 
    The correct statement from the following is/are

  • Integer types are always signed in java
  • The user of final to a variable in java is similar to the use of const in C and C++
  • Java supports labeled break and labeled continue statement
  • All of these
  • 7. 
    Java

  • Has no templates
  • Does not provide nested classes
  • Does not provide destructors
  • All of these
  • 8. 
    Major objective of object oriented approach is to

  • Eliminate the flaws encountered in the procedural approach
  • Treat data as a critical element in the program
  • Tie data more closely to the functions that operate on it
  • All of these
  • 9. 
    Java’s coordinate system has the origin (0,0) in the

  • Lower left corner
  • Lower right corner
  • Upper right corner
  • Upper left corner
  • 10. 
    The bitwise AND operator is represented by a single ampersand (&) and is surrounded on both sides by

  • Integer expression
  • Colons
  • Semicolons
  • Commas
  • 11. 
    The most common problem of writing a java program is

  • Missing of double quotes in strings
  • Missing of brackers and methods
  • Missing of double quotes in strings
  • All of these
  • 12. 
    The default priority is

  • 1
  • 2
  • 4
  • 5
  • 13. 
    Which one of the following is not a wrap class?

  • Random
  • Byte
  • Double
  • Short
  • 14. 
    The control flow which is not used in java is

  • Break
  • Continue
  • Goto
  • None of these
  • 15. 
    Java does not use

  • Preprocessor header files
  • Pointers
  • Go to statement
  • All of these
  • 16. 
    Which one of the following methods cannot be used to draw the outline of a square?

  • Draw line( )
  • Draw react ( )
  • Draw polygon ( )
  • Draw string( )
  • 17. 
    The thread may be in

  • Various waiting states
  • Ready state
  • Running state
  • All of these
  • 18. 
    The methods wait ( ) and notify ( ) are defined in

  • Java. Lang. thread
  • Java. Lang. string
  • Java. Lang. thread group
  • Java. Lang. object
  • 19. 
    For the method that does not return a value, the keyword used is

  • Boolean
  • Void
  • Null
  • Short
  • 20. 
    Java is a general purpose object oriented programming language developed by

  • Microsystems of U.S.A.
  • I.B.M.
  • Patrick Naughton
  • None of these
  • 21. 
    Which one of the following web browsers uses just-in-time (JIT) complier?

  • Netscape navigator
  • Internet Explorer
  • Hot JAVA
  • None of these
  • 22. 
    The java visibility modifier is

  • Public
  • Private
  • Protected
  • All of these
  • 23. 
    In an object oriented programming

  • Class create objects
  • Objects create classes
  • Classes use methods to communicate between them
  • None of these
  • 24. 
    A package is a collection of

  • Interfaces
  • Classes
  • Both (a) and (b)
  • None of these
  • 25. 
    The java variable is/are

  • Instance variables
  • Class variables
  • Local variables
  • All of these
  • 26. 
    Which one of the following concept is incorporated in building a java program?

  • Encapsulation
  • Inheritance
  • Polymorphism
  • All of these
  • 27. 
    The state of left cycle of a thread is

  • Runable state
  • Running state
  • Blocked state
  • All of these
  • 28. 
    Object oriented programming language, is

  • C++
  • Java
  • Both (a) and (b)
  • None of these
  • 29. 
    Java

  • Support an explicit pointer type
  • Possesses a new operator
  • Includes the C unique statement keywords go to size of and typedef
  • All of these
  • 30. 
    ?: is: a/an

  • Conditional operator
  • Assignment operator
  • Inequality
  • Logical AND
  • 31. 
    Which one of the following languages is suitable to implement the OOP concepts?

  • Objective C and C++
  • Small talk
  • Ada
  • All of these
  • 32. 
    Which one of the following is access keyword?

  • Public
  • Private
  • Protected
  • All of these
  • 33. 
    Which one of the following languages is pure object oriented language?

  • Java
  • C++
  • Object Pascal
  • C
  • 34. 
    Which one of the following is not a java keyword?

  • Break
  • Class
  • Static
  • Study
  • 35. 
    POP is a/an

  • Object oriented programming
  • Object optional programming
  • Optional object programming
  • None of these
  • 36. 
    Which one of the following is a java keyword?

  • Switch
  • While
  • Public
  • Void
  • All of these
  • 37. 
    Java declaration statement must end with

  • Comma
  • A colon
  • A semicolon
  • Full stop
  • 38. 
    The loop keyword of java is

  • Byte
  • While
  • Double
  • Float
  • 39. 
    Java does not define which type modifier?

  • Auto
  • Extern
  • Register
  • All of these
Report Question
warning
access_time
  Time