What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-10 16:46:02
find minimum number in array java
// Find minimum and maximum values in a java array public class MaxMinValueInArray { public static void main(String[] args) { int[] arrNumber = new int[]{50, 150, 250, 500, 160, 530}; int maximum = maxNumber(arrNumber); System.out... Add solution -
Java 2021-09-10 16:24:03
java break multiple loops
import java.io.IOException; /** * How to break from nested loop in Java. You can use labeled * statement with break statement to break from nested loop. * * @author WINDOWS 8 */ public class BreakingFromNestedLoop{ public static void main(Str... Add solution -
Java 2021-09-10 14:16:03
difference between interface and abstract class java
Interface 1) Interface contains only abstract methods 2) Access Specifiers for methods in interface must be public 3) Variables defined must be public , static , final 4) Multiple Inheritance in java is implemented using interface 5) To implement an int... Add solution -
Java 2021-09-10 05:21:03
error vs exception
Both Error and Exception are derived from Throwable in Java. Error represents errors which are generally cannot be handled. For examples: OutOfMemoryError, NoClassDefFoundError Exception represents errors which can be caught and handled. For examples: IOE... Add solution -
Other 2021-09-10 04:04:02
is a relationship vs has a relationship
‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’ keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantag... Add solution -
Java 2021-09-10 02:52:03
Print pattern in java 1 01 101 0101 10101
// Print pattern in java 1 01 101 0101 10101 import java.util.Scanner; public class PatternInJava { public static void main(String[] args) { int a, b, x, y; Scanner sc = new Scanner(System.in); System.out.println("Please enter... Add solution
Best helpers
Ranking is empty