oraclemag-marchapril15

Oracle Java Magazine – March/April 2015

Welcome to the March/April 2015 issue of # Magazine! In this issue, we examine how developers can improve Java performance—from code to platform tuning. Plus, find out how Netflix uses Java to fulfill 2 billion content requests per day.

Improving the Observability of Fork/Join Operations
When adding parallelism might help performance

On Demand
Netflix moves fast to give customers a superior viewing experience. Java makes it happen.

Performance, Innovation, and Success
Find out how collaboration drives a healthier Java ecosystem.

Understanding Java JIT Compilation with JITWatch
See the effects of small source code changes and Java HotSpot VM switches.

The Quantum Physics of Java
Discover how modern chip design affects Java programs.

Improving the Performance of Java EE Applications
Incorporate performance tuning into your development lifecycle.

And more!

Dowload free at # Java Magazine Website

Oracle Free Retake for Java Certification Exam

Repetition Promotion Free (Retake) Oracle Certification Exam

For a Limited Time: Get the possibility of repeating once the exam for free with registration for any certification exam Java or Oracle Database 12c

Steps to take advantage of the offer:

Enter the code RETAKE15LA promotion at the time of payment of scheduling your first attempt for the exam. NOTE: Add this promotion code qualifies you for the opportunity to repeat the exam once if necessary.

At that time, if you have an existing Oracle discount (voucher / promotional code), enter this number also the time of payment.
If you fail the first time, you will automatically be eligible to take the examination once free.

The discount will be automatically applied to your purchase when enrolling for re-examination. It will not be necessary to include a promotional code with your purchase for the discount to be considered.

Complete both studies (the first attempt and repeat) until 31 May 2015.

oracle

Java Magazine – January/February 2015

Hello everybody!

The January/February 2015 issue of Magazine has released!

In this issue, tools for Java developers working in the cloud are explored. Plus, there are action items for expanding your professional network and job opportunities.
Cover

Platform for Innovation

‘s Mike Lehmann discusses Java-based cloud services for the full development lifecycle.

Making Water Safe
A Java-based mobile app helps rural families get clean water.

Get Started with Oracle Developer Cloud Service
See how to run your entire development environment in the cloud.

Three Steps to Improve Your Career
Boost your skills and network.

Building Modular Cloud Applications in Java
Add, replace, or remove modules while keeping the architecture intact and maintainable.

Cloud-Based Monitoring of IoT Devices
Discover a scalable cloud-based monitoring system for collecting data from embedded devices.

And more!
programming-java

Multiple Heritance in Java 8

One of the newest features from Java 8 is the capability and freedom of using multiple heritance with defaults method. java-installer

Take a look at the example below:

Remembering that, even with some existing restrictions when building an interface it is still a fast simple way of multiple heritance that have never existed before at Java. You can see uncountable new interesting options of OOP design.
Therefore, take so much care! Every power comes with responsabilities…

java-magazine-december-2014

Java Magazine – November/December 2014

Welcome to the November/December 2014 issue of Java Magazine! In this issue explore the Java development for Internet of Things and discover how kids are learning Java in programs all over the world.

java-magazine-december-2014Java Development for the Internet of Things
Oracle’s Henrik Ståhl discusses the Internet of Things for Java developers.

Java Development for the Internet of Things – Part II
Oracle’s Henrik Ståhl discusses the Internet of Things for Java developers.

Java: The Next Generation
Teach kids to code and give them tools for success.

Robots Make Factories Smarter
Keba’s systems help usher in the next industrial revolution.

Code Java on the Raspberry Pi
BlueJ brings Java SE 8 development directly to the Raspberry Pi.

jdeps, Compact Profiles, and Java Modularity
We look at the future of Java modularity.

The Device I/O API
A standard API for peripherals and low-level hardware control just arrived for Oracle Java SE Embedded.

And much more!

HTTPS

Java HTTPS Client Example

Question: Can you share some source code for a Java HTTPS client application?

Sure, here’s the source code for an example Java HTTPS client program I just used to download the contents of an HTTPS (SSL) URL.

I used this program to troubleshoot a problem with Java and HTTPS URLs, including all that nice Java SSL keystore and cacerts stuff you may run into when working with Java, HTTPS/SSL, and hitting a URL.

This Java program should work if you are hitting an HTTPS URL that has a valid SSL certificate from someone like Verisign or Thawte, but will not work with other SSL certificates unless you go down the Java keystore road.

package foo;
import java.net.URL;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;

public class JavaHttpsExample
{
public static void main(String[] args)
throws Exception
{
String httpsURL = "https://your.https.url.here/";
URL myurl = new URL(httpsURL);
HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
InputStream ins = con.getInputStream();
InputStreamReader isr = new InputStreamReader(ins);
BufferedReader in = new BufferedReader(isr);

String inputLine;

while ((inputLine = in.readLine()) != null)
{
System.out.println(inputLine);
}

in.close();
}
}
Just change the URL shown there to the HTTPS URL you want to access, and hopefully everything will work well for you.