What is the first argument of the String array in main method? »
| 0 Comments |
The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.
Java Interview Questions | IT interview questions | Software Testing Interview questions | .Net Interview Questions | Job Interview Questions & Answers | Tough Interview Questions | Technology Interview Questions | Tech Interview Questions | Testing Interview Questions | SAP Interview Questions | ABAP Interview Questions | Data Warehousing Interview Questions
Category: JAVA Interview Questions| 0 Comments |
The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.
| 0 Comments |
Program compiles but throws a runtime error “NoSuchMethodError”.
| 0 Comments |
Program compiles and runs properly.
| 0 Comments |
Program compiles. But at runtime throws an error “NoSuchMethodError”.
| 0 Comments |
The program compiles properly but at runtime it will give “Main method not public.” message.
| 0 Comments |
The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.
| 0 Comments |
this is used to refer to the current object instance. super is used to refer to the variables and methods of the superclass of the current object instance.