TechieDrill Your World Of Technical Tutorials

Posts Tagged ‘Variables’

Understanding Java Static block/variables/method

11.20.2009 · Posted in Java

lass UseStatic { static int a=3; static int b; static void meth(int x) { System.out.println(”x: “+x); System.out.println(”a: “+a); System.out.println(”b: “+b); } static { System.out.println(”static block initialized: “); b=a*4; } public static void main(String [] args) { meth(42); } } Static block/variables/methods are very powerful in java. When we say static it is static throughout the application. If you declare ...

Javascript Tutorial – 4 – More on Variables

11.09.2009 · Posted in JavaScript

To download this you tube video, Click Here Tutorial More on Variables. Welcome to the fourth JavaScript tutorial.In this tutorial I’m going to be teaching you how to change variables and use variables in equations. So lets go ahead and start out with variables. Remember to declare a variable you type the variable and then type whatever ...