-
-
-
-
Why was Java Created?
PlatForm Indepentdent ,security,Garbage Collection.
-
-
-
-
-
-
-
-
SetEx setEx1 = new SetEx("Java");
String str1 = new String("Java");
String str2 = new String("Java");
s.add(setEx);
s.add(setEx1);
s.add(str1);
s.add(str2);
System.out.println("No Of elements in the Set is " + s.size());
}
What is the result and how?">Import java.util.*;public class SetEx { private String str; SetEx(String s) { str = s } public static void main(String[] ar) { Set s = new HashSet(); SetEx setEx = new SetEx("Java"); SetEx setEx1 = new SetEx("Java"); String str1 = new String("Java"); String str2 = new String("Java"); s.add(setEx); s.add(setEx1); s.add(str1); s.add(str2); System.out.println("No Of elements in the Set is " + s.size()); }What is the result and how?
-
-
-
-
Difference Between Collection and Legacy classes
What are the difference between Legacy classes and Collection other than Synchronized?
-
How to catch an Error occurred in a class
Can we catch an Error occurred in a class by extending that class with Throwable Since, Exception and error is the sub class of throwable.If yes/no- why?
-
Illegal State of Exception
When does thread throws illegal state of exception?Explain with two scenarios?
-
Generating ppt through java
I am trying to generate ppt through Java using Apache POI API. I am able to create table, bulleted text etc using this API. Please answer the following two questions, if anyone is aware of this. 1. How to split text across two slides, if the row had to be broken across 2 slides because the row is so big that it can only be accommodated in 2 slide ? 2. How to re-size table cell , if the text...
-
Serialization Process
Explain the use of serialization process in real time projects?
Core Java Interview Questions
Ans