Saturday, August 1, 2015

Microsoft is ready to launch Windows 10 Mobiles in September

Microsoft Lumia 950, 950 XL flagships to launch in late September or October

Amidst Microsoft's grand launch of Windows 10, reports about its two upcoming flagships have also surfaced.



A Windows central report claims that Microsoft plans to launch both Lumia 950 and Lumia 950 XL in late September or October.

Tuesday, July 28, 2015

Friday, July 10, 2015

Write a Program in java to Find Name of the Day of today


import java.text.SimpleDateFormat;

class Technoledgetree{
public static void main(String[] args) {
              java.util.Date date1 = new java.util.Date();
     System.out.println(new SimpleDateFormat("EEEE").format(date1));
        }
}

/* OUTPUT
*
* this program will give Name of the day of system date
*
* eg: Friday
*
*/


OR

import java.text.SimpleDateFormat;
import java.util.Calendar;

import java.util.GregorianCalendar;

class Technoledgetree{
public static void main(String[] args) {
             Calendar calendar = Calendar.getInstance();
java.util.Date date1 = (new GregorianCalendar(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE))).getTime();

     System.out.println(new SimpleDateFormat("EEEE").format(date1));
        }
}

/* OUTPUT
*
* this program will give Name of the day of system date
*
* eg: Friday
*
*/

Sunday, July 5, 2015

Casting Object object to String object leads to runtime exception [ ClassCastException ]

public class Technoledgetree{
public static void main(String[] args) {
Object o = new Object();
String s=(String)o;
}
}

/* OutPut

Compiles Successfully but  gives Runtime exception

Exception in thread "main" java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

*/

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