OCA Java SE 8 Building Blocks - OCA Mock Question Building Block 15








Question

Which of the following are true statements?

  1. Java allows operator overloading.
  2. Java code compiled on Windows can run on Linux.
  3. Java has pointers to specific locations in memory.
  4. Java is a procedural language.
  5. Java is an object-oriented language.
  6. Java is a functional programming language.




Answer



B, E.

Note

Java cannot do operator overloading.

B is correct because Java is platform independent. We can compile on one system and run on different system.

E is correct because Java is object oriented.

Java * does some functional programming vis Lambda.