What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-19 09:40:03
where do you use static block in framework
Static Block: I use static block in DBUtilities class. See below... static { try { connection = DriverManager.getConnection(url, username, password); statement = connection.createStatement(); metadata = connection.g... Add solution -
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 -
C# 2021-09-15 08:15:02
static initializer
Static blocks or static initializers are used to initalize static fields in java we declare static blocks when we want to intialize static fields in our class. Static blocks gets executed exactly once when the class is loaded Static blocks are executed ... 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 -
Other 2021-09-12 15:39:02
constructor vs static block
Constructor is used for creating object, initializing instance and Execution depends on the object I use it in pages classes in my framework Static Block: used for initializing statics members, it belongs to the class and only one copy and runs only o... 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-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