What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-27 14:30:01
java type casting
Primitive Type casting and Reference Type casting PRIMITIVE CASTING: implicit casting (casting smaller type to larger int a = 100; double c = a;) explicit casting (casting larger to smaller byte b = (byte) a; REFERENCE CASTING: upcasting - implicitl... Add solution -
Java 2022-02-01 08:51:29
polymorphism in java
POLYMORPHISM: It is an ability of object to behave in multiple form. The most common use of polymorphism is Java, when a parent class reference type of variable is used to refer to a child class object. In my framework E.g.: WebDriver driver = new Chrom... Add solution -
Java 2021-11-21 08:33:14
object orientation in java
class Person { void walk() { System.out.println(“Can Run….”); } } class Employee extends Person { void walk() { System.out.println(“Running Fast…”); } public static void main(String arg[]) { Person p = new ... Add solution -
Other 2021-11-17 06:44:15
what is opps concept
class Person { void walk() { System.out.println(“Can Run….”); } } class Employee extends Person { void walk() { System.out.println(“Running Fast…”); } public static void main(String arg[]) { Person p = new ... Add solution -
Java 2021-10-29 09:19:11
casting in java
Primitive Type casting and Reference Type casting PRIMITIVE CASTING: implicit casting (casting smaller type to larger int a = 100; double c = a;) explicit casting (casting larger to smaller byte b = (byte) a; REFERENCE CASTING: upcasting - implicitl... Add solution -
Java 2021-09-02 23:46:01
upcasting vs downcasting in java
Upcasting is casting a subtype to a supertype, going up in the inheritance tree. It is done implicitly in order to use method available on any interface/class, the object should be of same class or of class implementing the interface. WebDriver d... Add solution