Abstraction: Hiding the internal implementation of the feature and only showing the functionality to the users. i.e. what it... 17 May Difference between Abstract Class and Interface in Java rishabh@robustresults.com | java, Uncategorized | 0 Abstraction: Hiding the internal implementation of the feature and only showing the functionality to the users. i.e. what it...
In C++, if a class has at least one pure virtual function, then the class becomes abstract. Unlike C++,... 17 May Abstract Classes in Java rishabh@robustresults.com | java | 0 In C++, if a class has at least one pure virtual function, then the class becomes abstract. Unlike C++,...
In Java, methods and data members of a class/interface can have one of the following four access specifiers. The... 17 May Access specifiers for classes or interfaces in Java rishabh@robustresults.com | java | 0 In Java, methods and data members of a class/interface can have one of the following four access specifiers. The...
In Java, all methods in an interface are public even if we do not specify public with method names.... 17 May Access specifier of methods in interfaces rishabh@robustresults.com | java | 0 In Java, all methods in an interface are public even if we do not specify public with method names....
Like a class, an interface can have methods and variables, but the methods declared in an interface are by... 17 May Interfaces in Java rishabh@robustresults.com | java | 0 Like a class, an interface can have methods and variables, but the methods declared in an interface are by...
Chained Exceptions allows to relate one exception with another exception, i.e one exception describes cause of another exception. For... 17 May Chained Exceptions in Java rishabh@robustresults.com | java | 0 Chained Exceptions allows to relate one exception with another exception, i.e one exception describes cause of another exception. For...
Prior to Java 7, we had to catch only one exception type in each catch block. So whenever we... 17 May Multicatch in Java rishabh@robustresults.com | java | 0 Prior to Java 7, we had to catch only one exception type in each catch block. So whenever we...
Consider the following code snippets: public class PrutordotAi { public static void main(String args) { double p = 1;... 17 May Infinity or Exception in Java when divide by 0? rishabh@robustresults.com | java | 0 Consider the following code snippets: public class PrutordotAi { public static void main(String args) { double p = 1;...
Java provides us facility to create our own exceptions which are basically derived classes of Exception. For example MyException... 17 May User-defined Custom Exception in Java rishabh@robustresults.com | java | 0 Java provides us facility to create our own exceptions which are basically derived classes of Exception. For example MyException...
throw The throw keyword in Java is used to explicitly throw an exception from a method or any block... 17 May throw and throws in Java rishabh@robustresults.com | java | 0 throw The throw keyword in Java is used to explicitly throw an exception from a method or any block...