What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-19 08:46:03
abstraction in java
bstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cla... Add solution -
Other 2021-09-17 14:36:02
similarity between abstract class and interface java
1. We cannot create object using either. 2. All the abstract methods must be overridden by subclass. 3. Both of them don’t have default constructor. 4. By using both we can go for dynamic polymorphism. 5. Both can contain static and final variable. ... Add solution -
PHP 2021-09-15 04:52:02
laravel session flash 2020
/** * Static method */ Session::put('key', $value); // Set session variable Session::get('key') // Get session variable /** * Instance method */ session(['key' => $value]); // Set session variable session('key'); // Get session variable Add solution -
Java 2021-09-12 21:06:02
abstraction java
bstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cla... Add solution -
Java 2021-09-10 14:58:02
static method vs instance method
static or class method 1) A method that is declared as static is known as the static method 2) We don't need to create the objects to call the static methods 3) Non-static (instance) members cannot be accessed in static context (static method, static blo... Add solution -
Java 2021-09-07 03:36:01
what is the difference between int and integer in java
int is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt("1") doesn't make sense because int is not a class and therefore doesn't have any methods. Integer is a class, no d... Add solution -
Java 2021-09-06 10:59:02
Abstarction
Abstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cl... Add solution -
Java 2021-09-04 17:33:02
how to create driver object
Driver class: -Driver class is public, has a private constructor and private WebDriver object which named driver, so that no object can be created outside the class. It is also an example for "singleton design pattern". -Webdriver driver is pr... Add solution -
Other 2021-09-03 14:25:02
What is instantiation OOP?
Instantiation means you creating an object of that class. There are some cases where you don’t want that your class’ instance will be created. Now, you may have doubt that Why do I don’t want to create an object of that class? So here... Add solution -
Java 2021-09-03 13:32:02
java what is static
//Java Program to get the cube of a given number using the static method using static before a method or variable we can access it by not creating a instance of it.in the program we directly used student.cube(5) class Calculate{ static int cube(int... Add solution