suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ?
Answer Posted / selvan
It shows compile error, bcoz without class how it should be
run? so only coming expection. Declaration And all correct.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are green threads in java?
What is the benefit of inner classes in java?
Can we have any code between try and catch blocks?
What do you understand by looping in java? Explain the different types of loops.
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Can we override constructors?
Explain what do you mean by functional overloading in java?
Can we call the run() method instead of start()?
When would you use a static class?
What is the impact of declaring a method as final?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
How to find the largest value from the given array.
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is diamond operator in java?