Good one dude. ++ automatically involves casting while "+" does not , remembered this concept while I prepared for SCJP , some how didn't recall it quickly :)
Has your SPA accessibility compliance done ? Ahhh … let me get back to you. That’s usual scenario for dynamic single page application. Since content of the web app changes dynamically/asynchronously. It required need addition planning to make dynamic web accessibility complain. For those who are new to web accessibility The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. There are many tools are being provided to make the web accessible like screen reader. The screen reader read out the html content with help of aria attributes. One of the accessibility attribute is aria-sort . It let the user know that the given html table is sorted by of the its column and in which order. The sorted column of the table expected to have ng-aria=”ascending/descending”. The problem with SPA table is that on sorting the table the content get sorted without loading the web, so having static aria-sort attribute is going t...
As we all know Hash is a part of Java Collection framework and stores key-value pairs. HashMap uses hash Code value of key object to locate their possible in under line collection data structure, to be specific it is nothing but array. Hash code value of key object decide index of array where value object get stored. As per hashcode – equals method implementation rules Objects that are equal according to the equals method must return the same hashCode value. & If two objects are not equal according to equals, they are not required to return different hashCode values. As per above statement it is possible that two different object may have same hashcode values, this is called hashcode collision . To overcome this problem concept of bucket has been introduced. All the Value objects whose corresponding Key’s hashcode values are same , they fall under same bucket. Above diagram explains hash code collision. There are three key-value entries are shown , out of which second and thi...
Eclipse SWT Image APIs provides great level of abstraction for all basic image processing operations like scaling , cropping etc.In this post I have provided code snippet to some of the most common image processing operations. There are main two classes in SWT ( org.eclipse.swt.graphics) Image API org.eclipse.swt.graphics.Image org.eclipse.swt.graphics.ImageData Instances of Image class are graphics which have been prepared for display on a specific device. Instances of ImageData class are device-independent descriptions of images. They are typically used as an intermediate format between loading from or writing to streams and creating an Image . Following code snippet shows creating Image reference as well as retrieving ImageData from image . /* creating Image reference using image path */ Image imageRef = new Image(Display.getCurrent(), "image.jpg" ); ImageData imageData = imageRef.getImageData(); //processing image data //.. //creating image using i...
Disappointing .... :(
ReplyDeleteNo one can solve this or no one has time to look at ....
Anyway here is the answer
byte x = 100;
// or short x = 100; or char x = 100;
x = ++x; // valid
x = x + 1; // not valid
If I say I knew it, but read the question wrong, will you believe me?
ReplyDeleteYes i have to , as you have proof (similar but previous dated post) :)
ReplyDeleteOtherwise ... :)
Good one dude. ++ automatically involves casting while "+" does not , remembered this concept while I prepared for SCJP , some how didn't recall it quickly :)
ReplyDeleteThanks
Javin
How classpath works in Java
do you syntactically valid or both the statements should give same value of x ??
ReplyDelete