Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Compilation' - 7 question(s) found - Order By Newest | ||||
| ||||
Ans. No. It will give the compilation error saying "The abstract method test in type BuggyBread1 can only be defined by an abstract class". We need to declare the class abstract for it to have any abstract method. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. No. This will give a compilation error saying "Abstract methods do not specify a body". | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Java Source Code File | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Compilation is the process of converting Java source files to class files which can be executed by the Java runtime environment whereas Decompilation is the process of converting class files back to the Java Source code. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. OuterClass.class AND OuterClass$InnerClass.class | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. No without main method can not be executed it will throw an error illegal start of type. Main method is the entry point of application. | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||
| ||||
Ans. 1 Reason being that Class1.xyz is replaced with 1 during pre compilation only and a reference to Class1 is never made. | ||||
![]() | ||||
![]() ![]() ![]() | ||||