Why const and goto are reserved keyword in java?
Answer / ravikiran(aptech mumbai)
Because final and continue already satisfies the purpose of
the both
| Is This Answer Correct ? | 3 Yes | 17 No |
What is javac used for?
What is meant by distributed application? Why are we using that in our application?
what is polymorhism what is inheritance? what is Abstract n Interface? what if two interfaces have same method and a concrete class is implementing both the interfaces. Will there be a compilation error? What are mutable and immutable classes? How can u make a class mutable? when will u use dem ...explain with example? what is overriding and overloading? what is garbage collection? what is Thread? how do dey communicate? what are the different ways of implementing ? have u used any messaging technologies? what is synchronization? what are some additions in java 1.5? what are generics? whst is advanced for loop? what is finally block? can u have a try in finally? yes!! can u have a finally in finally? how do you write junits? when is a object eligible for garbage collection?explain? a = null and b has ref to a will b be eligible to be garbage collected? sql questions like diff joins? how do dey work? exception handling? what is marker interface? what is the need??
This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?
Can we override the main method?
What are interfaces?
Can a singleton class be inherited?
If you are given the name of the function at run time how will you invoke the function?
What is null statement?
Can we have more than one package statement in the source file?
Is it possible to write static method in abstract class? justyfy your answer?
Can you run java program without main method?