How many types of exception can occur in a java program?
What is continuity of a function?
String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?
6 Answers Flextronics, Keane India Ltd,
What is java’s garbage collected heap?
what is aberivation of java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What must a class do to implement an interface in java programming?
What is exception propagation?
What does a za z0 9 mean?
What is finally and finalize in java?
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
Can a class have 2 constructors?
What is the difference between abstract class and interface?