Tag: programming languages
Questions Related to programming languages
The following code creates one array and one string object. which object is eligible for garbage collection after the code executes? ... String[] students = new String[10]; String studentName = "Peter Parker"; students[0] = studentName; studentName = null; ...
Identify the following. x. public final String getDetails(final File file, final String key) throws IOException y. getDetails(File, String)
Static nested classes do not have access to
Class C { public static void main(String[] args) { int[]a1[]=new int[3][3]; //3 int a2[4]={3,4,5,6}; //4 int a2[5]; //5 } } What is the result of attempting to compile and run the program ?