-
Memory Allocation
What is the difference between below 2 statements?
String s1=new String("abc");String s2="abc";How it will allocate in memory? -
-
Which of the following are valid types of COM servers
A: In-process B: Local and remote C: All of the above D: None of the above
-
If there are more than one main method in a program, then which main method will be called.
what will be the output
class A
{
public static void main(String args[])
{
System.out.println("Hi friend");
}
}
class Test
{
public static void main(String args[])
{
System.out.println(" How are you");
}
}
-
Abstract class and interfaces
Where should we use exactly abstract class and interfaces?
-
When does the String Literal pool gets cleared?
In one java class I have created this string String s1 = "abc";Now if I again use this same statement in a different java class, ie;String s2 = "abc";Will I get the same reference for "abc" in both the classes.
-
-
-
-
Search text from file in directories
Efficient way to find word from file in directory?
However directory contains huge number of files -
-
Is it possible to override the main method in Java?
If yes then how?
-
JVM uses which one of these to save hashcode,Hashtable or HashMap or HashSet??
Please answer my question....
-
Platform Independence
Why platform independence is needed in real world ?
-
Inner Class
Can we decalre java inner class as private and protected?
If yes....please explain
If No....please explain -
How Treeset implementation maintains unique elements in it?
How an Treeset maintains the unique element? Which algorithm does it use?
What is the advantages over doing the same using the Arraylist manually? -
Compare two dates from input box using javascript
How to compare two dates from input box using javascript?
-
-
Adding Method in Java
Hi
I have interface in that interface 3 methods are there , after some days client said that,i want to add one more method in that interface ,so how can add 4 method so that the implemented class did not affect,
Thanks
Kalins Naik
-
MVC architecture
what is the difference between MVC1 & MVC2 in Java?
Core Java Interview Questions
Ans