42.3k views
5 votes
1. Which of the following statement is FALSE about JAVA programming language compared to other programming language? A. It is cross-platform compatibility. B. It provide an automatic garbage collections. C. It supports single and multiple inheritance. D. It is pure Object-oriented Programming. What is the vital element of a class for constructing object? A. Method B. Constructor C. Processor D. Data member

User Andrewtc
by
8.2k points

1 Answer

5 votes

The statement that is FALSE about JAVA programming language compared to other programming languages is that: It supports single and multiple inheritance. The correct option is C. It is pure Object-oriented Programming. The vital element of a class for constructing an object is the constructor. A constructor is a special method that is used to initialize objects of a class and is also called when an object is created.The option D is the correct answer. Data member is used to represent the attributes of an object. The data members are used to store the values which are then manipulated by the methods of the class. They are declared within the class using access modifiers like public, private or protected.

User ChrisJP
by
8.1k points