In Java, what are this() and super(), and where are you required to use them?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Define linked list and its features with signature?
Can a main method be overloaded?
What methods are called, When we navigate from one applet to another applet?
Explain the differences between abstraction and encapsulation?
What is string value?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Program to find greatest prime number in n numbers?
Give me example of derived data types.
How do you remove duplicates from an array in java?
What is the difference between preemptive scheduling and time slicing?
What is an array in java?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?