Tag: programming languages

Questions Related to programming languages

  1. int = 32-bit signed

  2. float = 32-bit IEEE 754 floating point

  3. long = 64-bit signed

  4. short = 18-bit signed


Correct Option: A,B,C
  1. public

  2. synchronise

  3. private

  4. transient


Correct Option: A
  1. Conditional operator

  2. assignment operator

  3. bitwise operator

  4. none


Correct Option: A

Which of the following are bit wise operators in java?

  1. ~

  2. <

  3. >>

  4. &&


Correct Option: A,B,C

The expression to the switch must be of a type

  1. byte/int,

  2. short,

  3. char,

  4. float


Correct Option: A,B,C

All classes extend from

  1. java.lang.object

  2. java.lang

  3. none

  4. java.lang.string


Correct Option: A
  1. When a class is not to be instantiated,

  2. declare a method without providing the implementation

  3. cannot use a field declared abstract

  4. none


Correct Option: A,B

Which is not a part of java

  1. final

  2. finally

  3. finalize

  4. finalised


Correct Option: D

Using super keywork how many levels up we can go

  1. one level

  2. two levels

  3. multiple levels

  4. none


Correct Option: A