Can private class be extended java?
No Answer is Posted For this Question
Be the First to Post Answer
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????
Explain the use of javap tool.
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()); } }
What is the difference between preemptive scheduling and time slicing?
How to change value in arraylist java?
Explain the importance of finally block in java?
What is the difference between an interface and an abstract class?
Explain the concept of proper inheritance?
0 Answers Thomson Reuters, Virtusa,
write java code to print second max number in the array
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class?
What are command line arguments?
Differentiate between vector and array list.