What do you want to save?
Add Code snippet
New code examples
-
Java 2022-01-26 01:25:16
why cant we have primitive types in generixs
//In java generics are implemented by using "Type erasure" for backward compatibility. All generic types are converted to Object at runtime. for example, public class Container<T> { private T data; public T getData() { r... Add solution -
Java 2022-01-24 03:35:48
system.getproperty( )
Key Meaning "file.separator" Character that separates components of a file path. This is "/" on UNIX and "\" on Windows. "java.class.path" Path used to find directories and JAR archives containing class files. Eleme... Add solution -
Other 2022-01-23 10:30:50
preview readme.md vscode
// method 1 <img src=“images/SubPronouns.jpg” raw=true alt=“Subject Pronouns” style=“margin-right: 10px;” /> // method 2 ![Test Image 3](/3DTest.png) ![Test Image 4](https://github.com/tograh/testrepository/3DTes... Add solution -
Java 2022-01-23 09:36:27
type of constructor in java
There are three types of constructors: Default, No-arg constructor and Parameterized. If you do not implement any constructor in your class, Java compiler inserts a default constructor into your code on your behalf. This constructor is known as defaul... Add solution -
Java 2022-01-23 02:01:30
Difference between == operator and equals method in java
In general both equals() and == operator in Java are used to compare objects to check equality but here are some of the differences between the two: 1) .equals() and == is that one is a method and other is operator. 2) We can use == operator for referen... Add solution