COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one of the following is not a java feature
A
Object-oriented
B
Use of pointers
C
Portable
D
Dynamic and Extensible
Explanation: 

Detailed explanation-1: -4. Which one of the following is not a Java feature? Explanation: Pointers is not a Java feature. Java provides an efficient abstraction layer for developing without using a pointer in Java.

Detailed explanation-2: -Java is a fully object-oriented language, unlike C++ which is semi object-oriented. It supports every OOP concept such as Abstraction, Encapsulation, Inheritance, Polymorphism. Java programs are developed using classes and objects. Another notable feature is that in Java the main() function is defined under a class.

Detailed explanation-3: -Which of the following is not introduced with Java 8? Explanation: Serialization is not introduced with Java 8.

Detailed explanation-4: -5. Which of these can not be used for a variable name in Java? Explanation: Keywords are specially reserved words which can not be used for naming a user defined variable, example: class, int, for etc.

There is 1 question to complete.