JAVA VS .NET

JAVA and .NET are two of the most popular programming languages in the world, both in existence since long and each powerful enough to compete with the other.

We researched for opinions of a few enterprises and found out that they prefer Java over .NET due to following reasons:

1. Open Source

In 2006, Oracle made Java open source ­– which means no licensing fee to be given to Oracle to develop any software. On the other hand development in .Net may cost you money i.e. to develop a software in .Net you may have to buy visual studio that will cost you money, off course you can opt for free tools available but I’m sure enterprise wouldn’t prefer it owing to its limited features.

The advantage Companies get while using Java is that they can cut down development costs by using an open source software development framework. For enterprises with a tight budget, Java is the natural choice.

Plus, being an open source platform, it allows developers to do anything with it, they can build what they want and create solutions they like by using various available Java supported developing tools.

2. Platform Independent

Do you want to develop a software that can run seamlessly on various operating systems? Imagine a software that allows you to write a code that works across devices and platforms. All this is possible with Java. Java was made with single purpose – “write once, run everywhere” and true to its vision Java code once written can be executed and run on various platforms. This is possible because concrete JVM implementations are available for almost all major platforms.

Off course for development in .NET you can use Mono to build applications thatcan work onmajor operating systems, but it doesn’t offer the ease of development that Java does. So if you creating software or apps that need to be run on various platforms – Java is an ideal development platform for you. It will make the development process simpler.

3. Preferred Platform for Internet of Things

The Internet of Things refers to a vision of the future where everyday things – such as devices, homes, cities, cars and other items – are infused with intelligence and constantly connected to the Internet.Java will be an ideal platform for Internet of Things as the devices will be running on different software and hardware and Java can get all these different devices communicate with each other.

Of course, there are other languages that can also be used, but Java already is a matured programming language, and much development and research is already done on this front, making it an ideal choice for developers.

Now, this is the capability that .NET does not offer, owing to its functionality of mostly being fully compatible only to windows platform; .NET is not too good at connecting various devices that are build and run on different software and hardware.

4. Active Community

The best part of Java Community is that you can get your solutions for free, in comparison to Microsoft which charges when you approach them for a solution. On the other side, the vibrant Java developer community keeps on improving the functionality and effectiveness of the Java platform. This means that your software and applications can continue to get the advantages of the latest technology without having to shell out extra money.

5. Security

Java is fairly more popular in terms of security compared to other programming languages. Features like automatic null checking of reference, verification of byte code prior to execution, run time security checks and dozens of similar features allows developers to build secure apps. Off course Java did had major security risk few months back but oracle fixed those issues with regular updates.

Advertisements

Java skills still in high demand

Whatever else 2014 holds, developers with “mad” Java skills don’t have to worry about finding a job. According to ComputerWorld, 60% of IT executives are looking to hire developers in the next 12 months. Not surprisingly, they are looking for individuals with Java/J2EE skills. So, while Java programmers should probably keep an open mind about other languages, it may pay off more to take an education course that stays closer to core Java. Java in the cloud, Java embedded, Java mobile, and Java enterprise are all areas of specialization that should keep developers in the black far beyond 2014.

Socket Programming

socketprogramming

A socket is one of the most fundamental technologies of computer networking. Sockets allow applications to communicate using standard mechanisms built into network hardware and operating systems. Although network software may seem to be a relatively new “Web” phenomenon, socket technology actually has been employed for roughly two decades.
Software applications that rely on the Internet and other computer networks continue to grow in popularity. Many of today’s most popular software packages — including Web browsers, instant messaging applications and peer to peer file sharing systems — rely on sockets.

Point-to-Point Communication

In a nutshell, a socket represents a single connection between exactly two pieces of software. More than two pieces of software can communicate in client/server or distributed systems (for example, many Web browsers can simultaneously communicate with a single Web server) but multiple sockets are required to do this. Socket-based software usually runs on two separate computers on the network, but sockets can also be used to communicate locally (interprocess) on a single computer.

Here is a PDF file of Socket Programming in JAVA, you can easily download from the below link.

Socket Programming

Why Java is Secure and Portable ?

The answer is
BYTECODE.!

Bytecode it the key that makes Java language most secure and Portable.

When you compile your java program then on successful compilation , java compiler (javac) generates a class file with .class extension which contains the Bytecodes of your java program. Now the Bytecodes which are generated are secure and they can be run on any machine (portable) which has JVM.

Welcome In 3D World…Learn JAVA 3D Programming

Java 3D is a scene graph based 3D application programming interface (API) for the Java platform. It runs atop either OpenGL or Direct3D. Since version 1.2, Java 3D has been developed under the Java Community Process. A Java 3D scene graph is a directed acyclic graph (DAG).
Compared to other solutions, Java 3D is not only a wrapper around these graphics APIs, but an interface that encapsulates the graphics programming using a true object-oriented approach. Here a scene is constructed using a scene graph that is a representation of the objects that have to be shown. This scene graph is structured as a tree containing several elements that are necessary to display the objects. Additionally, Java 3D offers extensive spatialized sound support.

This Book has been made to learning The JAVA 3D Programming.You can download this directly from below link.

JAVA 3D Programming

Eye_Drops_Water-desktop

Want to create a ”ZIP File” in JAVA

fd

This Java tip illustrates a method of creating a ZIP file. ZIP is a universal format used by many applications to compress their files. By using this option developer may give their user an option of compressing their files in ZIP format.

———————————————————————————————————————
// These are the files to include in the ZIP file
String[] source = new String[]{“source1”, “source2”};

// Create a buffer for reading the files
byte[] buf = new byte[1024];

try {
// Create the ZIP file
String target = “target.zip”;
ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));

// Compress the files
for (int i=0; i 0) {
out.write(buf, 0, len);
}

// Complete the entry
out.closeEntry();
in.close();
}

// Complete the ZIP file
out.close();
} catch (IOException e) {
}

———————————————————————————————————————