Languages-Java [3i Infotech Placement]: Sample Questions 19 - 20 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 19

Edit

Write in Short

Short Answer▾

Does a class inherit the constructors of it՚s super class?

Explanation

  • No constructor of the superclass is not inherited.
  • Access to super class parameterized constructors is done through use of super keyword.
  • Constructors are special functions in that are not inherited by the subclass.
  • One of the main reasons is to prevent overriding of superclass constructors, which would be possible if they were inherited.
  • Overriding the superclasses constructor would erode encapsulation in the language.

Question 20

Question

MCQ▾

What was the first name given to Java Programming Language?

Choices

Choice (4)

a.

Oak

b.

Oak-Java

c.

Small Talk

d.

None of the above

Answer

b.

Explanation

  • Oak-java was the first name given to java Programming Language.
  • Gosling attempted to modify and extend C ++ but soon abandoned that in favour of creating a new platform called Green and an entirely new language.
  • This was called Oak, after the tree that stood just outside his office- we have Oak language, the libraries, and the hardware.
  • Their first attempt, demonstrated on September 3,1992, focused on building a PDA device named Star with graphical interface and a smart agent called “Duke” to assist the user.
  • Oak was renamed Java in 1994 after a trademark search revealed that Oak was used by Oak Technology.
  • Java was finally shipped in 1996

Developed by: