Java static variable in Method and Class with example

Which Java variable is declared with “static keyword” called a Java static variable. Static Variable is a class-level variable. It’s initialized at class load and a single copy has created and shared among all the instances of the class. Static Variables are good for memory management. It’s created when the program starts and destroyed when Read More…


Static keyword in Java | Method, Variable, Block, Nested Class with Examples

What is Static Keyword in java? A Static keyword is used in java for application memory management. You can apply static keyword in variables, methods, blocks and nested class. Static means that you don’t have to create an instance of the class to use the methods or variables associated with the class.  So static keyword Read More…


Convert Javascript string to int | javascript parseint() function

You can convert string to int in Javascript using a parseint() function, but before the start, you must new about how javascript represent strings and integer. The parseInt() is an inbuilt function in JavaScript used to convert a string into an integer. Below code of basic int and strings declaration in JS:- int -> var num1 = Read More…


JavaScript alert Yes No | jQuery confirm dialog yes no Example

The Alert dialog box stops the whole process until the user gets a mouse response on its buttons. To Show, the custom alert box you have to use a library like – You can use jQuery UI Dialog. In the tutorial, you will learn how to create a JavaScript alert Yes No button option. Before start Read More…


Final keyword in Java | Variable, Method, Class with examples

Final keyword in java is used to create a Constant Variable, Prevent method overloading and prevent Class Inheritance, etc. Java Final keyword restrict to the user and it can applicable only to: – Variables Methods and Class Java Final Variable Defining a variable as a Final make it constant, means you can change (modified) the value Read More…