What do you want to save?
Add Code snippet
New code examples
-
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 -
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 -
Other 2021-09-08 13:53:02
java
Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let application developers write once, run anywhere (WORA),[17] m... Add solution -
Python 2021-09-08 13:35:03
Python
Python is a high-level programming language designed to be easy to read and simple to implement. It is open source, which means it is free to use, even for commercial applications. Python can run on Mac, Windows, and Unix systems and has also been ported ... Add solution -
Java 2021-09-08 09:17:03
arraylist add at index
/* add(index, item to add); */ ArrayList<String> languages = new ArrayList<String>(); languages.add("PHP"); languages.add("JAVA"); languages.add("C#"); languages.add(2, "RUBY"); /* at index 2, add RUBY*... Add solution -
Java 2021-09-08 04:04:04
Java program to remove consonants from a string
// Java program to remove consonants from a string import java.util.Arrays; import java.util.List; public class RemoveConsonantsFromString { public static void main(String[] args) { String str = "hello world core java"; System... Add solution -
Java 2021-09-07 20:13:03
spring Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30001ms
//Your database is not obtaining connection //within (30000 milliseconds that is default connectionTimeout property) //because of network latency or some of the queries which are taking too //long to execute(more than 30000 milliseconds). //Please try... Add solution