Question discussion

Which of the following is true about Java?

211258Medium 1 reply 1,810 views
55
Which of the following is true about Java?
  • AJava is not object-oriented language.
  • BConstructors cannot be created in Java.
  • CJava is platform-independent language.
  • DClasses are not required while writing code in Java.
Answer not set

Discussion 1

0
CCommunity
Option (4) is not true about Java. Classes are mandetory for writing code in Java.

Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

Java constructor is invoked at the time of object creation. It constructs the values for the object that is why it is known as constructor.

JAVA is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.