What isan abstract class and when do you use it?
An abstract class allows you to create functionality that subclasses can implement or override. An interface only allows you to define functionality, not implement it. And whereas a class can extend only one abstract class, it can take advantage of multiple interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a method vs function?
what is filters and its use?
Are primitives objects?
How do you invoke a method?
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"); } }
What is stream api in java8?
What is primitive array?
What is object class in java?
What is pangram in java?
How to create a custom exception?
What is singleton class example?
what do you understand by synchronization? : Java thread