Saturday, July 4, 2015

String vs StringBuffer Class Example Demonstration


public class Prac {
public static void main(String[] args) {
String a="technoledgetree";
StringBuffer s=new StringBuffer("technoledgetree");
if(a==s)
{
System.out.println("true");

}
else
{
System.out.println("false");
}

}

}

/* COMMENTS

    Compilation Error: Incompatible operand types String and StringBuffer

*/





public class Prac {
public static void main(String[] args) {
String a="technoledgetree";
StringBuffer s=new StringBuffer("technoledgetree");
if(a.equals(s)
{
System.out.println("true");

}
else
{
System.out.println("false");
}

}

}

/* OUTPUT

    false

*/

Friday, June 26, 2015

iPhone 6 Exploded during call

In Gurgaon, Haryana, India a man said the phone heated up and exploded in hands-free mode. 
He suffered no injuries and an Apple representative said the claim is being investigated.

Windows 10 FREE Upgrade will be available on 29th july 2015

Windows 10 FREE upgrade will be available on 29th July 2015.

If You are using windows, You can see a notification of windows 10 free upgrade request in notification area.

Just one click and you can avail Windows 10 from 29th July 2015 onward.

New windows 10 upgrade will require 3 GB download.










See the below introduction video of Brand New Windows 10


Monday, June 8, 2015

Character Manipulation in java

Trace the Output

public class Trp {
void m1(Character c1,Character c2){
System.out.println(c1+" "+c2);
}
void m1(char c1,char c2){
System.out.println(c2+" "+c1);
}
public static void main(String[] args) {

Trp tr = new Trp();
tr.m1('A','B');
       }
}

/* OUTPUT

B A

*/

Java String Manipulation

Trace the Output

1. String s="ab"+"12";
String t="ab"+12;
String u=new String("ab12");


System.out.println((s==t)+" "+(s.equals(u)));

/*OUTPUT

true true

*/

2.
String x="Taxi";
System.out.println(x.concat(" cab"));

x="library";
System.out.println(x+" card");

/*OUTPUT

Taxi cab

library card

*/

Saturday, May 30, 2015

Cortana may come to Android and IOS

[Wikipedia] Microsoft Cortana is an intelligent personal assistant developed by Microsoft for Windows Phone 8.1, Microsoft Band, and coming to Windows 10, iOS, and Android.

Microsoft is officially releasing Cortana Voice Assistant to both Android and iPhone. Both platforms will get an app that will help you keep your life organized. With features like dictating reminders and keeping track of flights, the app will heavily resemble much of what is seen on the Windows Phone. Cortana’s Notebook, which is tasked with remembering what you like, will also sync across all of your platforms. Cortana is expected to be available for Android in June of this year and land on the iPhone a little later on.

Microsoft has also announced a new “Phone Companion” app for Windows 10 that is designed to help users connect their PC to the smartphone of their choice. The Phone Companion app will be built directly into Windows 10 and it will basically offer an easy guide on how to set up OneDrive to work across all of your devices. This means that things like documents, notes, and photos will be available across all of your devices – no matter which device you originally stored your information on. You’ll also be able to access music stored in your OneDrive account – a feature to which Windows Phone users have already grown accustomed.



Catering to Android and iOS users is a brilliant plan by Microsoft to encourage users to sign up for a OneDrive subscription. The integration of Cortana (if you choose) into Android and iOS  will basically act like a bridge for things you start doing on your laptop but want to finish later; it will also be bridge to an entirely new market of mobile users.

Since Microsoft will be unable to tap directly into the OS like it can on Windows devices, there won’t be any hands-free activation through “hey Cortana.” Still, it will be interesting to see what Cortana can do when it crosses platforms later this summer. Especially since it’s not the only treat Microsoft has in store for smartphones.

Linux Based Devices can be infected by Moose Malware



Moose Malware is on the loose and infecting Linux-based routers and devices running on the ARM and MIPS architectures. The name seems kind of goofy, dubbed Moose Olivier Bilodeu and Thomus Dupey of ESET, but clearly the threat this worm presents is not.

ESET researchers have identified a worm that is targeting cable modems, DSL modems, and home routers in order to pull off massive social networking fraud. The worm “hijacks victims’ internet connections in order to ‘like’ posts and pages, ‘view’ videos, and ‘follow’ other accounts,” according to a blog post written at We Live Security Blog.

The technical paper released by ESET says, “the Moose worm does not rely upon any underlying vulnerability in the routers – it is simply taking advantage of devices that have been weakly configured with poorly chosen login credentials. Unfortunately, this means that devices other than routers can be impacted by the worm in the form of accidental collateral damage. ESET’s team believes that even medical devices, such as the Hospira drug infusion pump, could be infected by the Linux/Moose worm.”



According to a graphic presented by ESET in their technical paper, the top three targets of the attack appear to be Instagram, Twitter, and SoundCloud. Other targets of the attack include Facebook, Google, Live, Yahoo, YouTube, and Vine. Sadly, there are plenty of people and companies out there who have no problem with hiring third-parties to help them manipulate their social standing, and the fake “likes” and “follows” that Moose provides will be hard for marketing teams to pick up. Especially those who, as We Live Security put it, “are keen to impress their bosses.”

Consumers are being advised to install the latest security patches, update passwords, and be on guard.