please write java program of instanceOf keyword implementation
Answers were Sorted based on User's Feedback
Answer / dhanasekar
public class MainClass {
public static void main(String[] a) {
String s = null;
if (s instanceof java.lang.String) {
System.out.println("true");
} else {
System.out.println("false");
}
}
}
Is This Answer Correct ? | 7 Yes | 1 No |
Explain java thread life cycle.
What are the main differences between the java platform and other platforms?
What are the limitations of procedural programming approach?
How will you call an Applet using Java Script Function?
How do you use nextline in java?
What is stringjoiner ?
What are the basic control structures?
What is object cloning in Java?
0 Answers SwanSoft Technologies,
What are actual parameters?
Explain class A{} class B{} class C{} all the three classes are saved in a single file name, what the name should i provide to the file ,in what file name should i run the program? Ple Explain
Difference between ‘is-a’ and ‘has-a’ relationship in java?
Are arrays static in java?