Java Operators
1. Operand : Arguments on which operation is performed are known as operand. 2. Operator: Operator is a special symbol used for performing a specific task. e.g. A+B. Here + symbol represents the operator. 3. Expression: A sequence of operands connected by operators is known as expression. e.g. A+B*5.
Arrays in Java
Array in java represents a group of fixed homogeneous elements that can be referenced with same variable. Array elements storage is index based and follow the mechanism of contiguous memory location which states that 1st element will store at index 0, 2nd element will store at index 1, 3rd element will store at index 2 … Read more
Increase heap size
Increase heap size in java Set or Increase the maximum heap size: java -Xmx256m TestData.java Where: TestData.java: represents java application file. Java command memory options $ java -X -Xmixed mixed mode execution (default) -Xint interpreted mode execution only -Xbootclasspath: set search path for bootstrap classes and resources -Xbootclasspath/a: append to end of bootstrap class path … Read more
Synchronized override method
We can synchronized the overridden method in subclass. See the below example. class ShowTest { void display(int num) { System.out.println("Number = " + num); } } class Test extends ShowTest { synchronized void display(int num) { for(int i=1;i<=10;i++){ System.out.println(num*i); try{ Thread.sleep(600); }catch(Exception e){ System.out.println(e); } } } } class MyThread1 extends … Read more
jQuery UI Effect
To manage jQuery UI visual effects to apply an animation effect to the element without having to show or hide it, the effect() method is used. Syntax: .effect( effect, [options], [duration], [complete] ) Parameters: Effect: Used to specify the effects used for transition. Options: Used to specify the specific setting and easing for the effects, … Read more
jQuery UI addClass
To allow animating the changes to the CSS properties and to add specified classes to the matched elements while animating the changes, the jQuery addclass() method is used. Syntax 1: Basic syntax: Added in version 1.0: .addClass( className, [duration], [easing], [complete] ) Parameters: ClassName: Used to specify a string containing one or more CSS classes, … Read more
jQuery UI Easing
To define the rate of change of a parameter concerning time, the jQueryUI Easing function is used. Linear, swing, etc are different types of easing functions in jQuery. Depending on the properties being animated, easing often provides negative value results during the animation. To choose easing functions: CSS: To pick easing functions, the CSS properties … Read more
jQuery UI Animation
The jQuery UI Animation facilitates the addition of some methods in core jQuery to extend the features of animate functionality and to animate different transitions for an element. Animating colors is also supported by the jQuery UI. Multiple CSS properties can also be animated to define an element color. The CSS properties that support the … Read more
jQuery UI Switch Class
To move from one CSS class to another CSS class, the jQuery UI switchClass() method is used. It thus animates the transition from one state to another state. It means that there is no need to use both the jQuery addclass() method and the jQuery removeclass() method in a code for a single element. Only … Read more