Thursday, August 8, 2013

Getting Started with Java JDK (Java Development Kit)

Getting Started with Java JDK (Java Development Kit)

Part 2  Start with part 1 is very understand

Introduction Fundamentals of Java quickly became easier with Intecs. This site is for Java programmers who want to use the Java programming language to create applications using the basics of Java. This site is for beginners and for advanced Java programmers that do not require prerequisite knowledge of Java. To start using Java you must have a basic understanding of programming concepts.



After going through all the tutorials on this site, you should learn the basic concepts and features of the Java programming language, including exceptions, swing GUI programming, under Collections etc. A lot of code examples used throughout exercise to better understand the language.
All advertisements and programs on this site are compiled and run with JDK .

Download : JDK and JRE 

Java Architecture

The Java environment consists of a number of system components. You can use these components at compile time to create the Java program at runtime to execute the program. Java achieves its independence with the creation of programs designed to run on the Java virtual machine, rather than any specific computer system.

  • After writing a Java program, you are using a compiler that reads the instructions in the program and translated into a machine-independent format called bytecode.
  • Bytecode files, which are very compact, easily transported through a distributed system such as the Internet.
  • The compiled Java code (code resulting byte) will be executed at run time.

Java programs can be written and executed in two ways:

  • Stand-alone application (a Java Swing)
  • Applet that runs in a web browser (eg Internet Explorer)



Java source code

A Java program is a set of one or more Java classes. A Java source file can contain more than one class definition and has an extension of Java .. Each class definition in the source file is compiled into a separate class file. The name of the compiled file consists of the name of the class. Class as an extension. Before proceeding further in this section, I suggest you go through the "basic elements of the following languages.

Below is an example of Java code for the traditional Hello World program. In essence, the idea behind this Hello World program is to learn how to create a program, compile and run. To create the Java source code you can use any editor (pad / Edit Plus text are my favorite), or you can use an IDE like Eclipse.

public class HelloWorld {
 public static void main(String[] args) {
  System.out.println("Hello World");
 }//End of main
}//End of HelloWorld Class

Output
Hello World

Program information

I have created a class called "HelloWorld," which contains a simple main function within it. The class keyword specifies that we are defining a class. The name of a public class is written exactly the file name (case sensitive). All java programs begin execution with a method called main (). main execution method has the following signature: void main (String args []) public static declare this method as public transport which is accessible from outside the class to the JVM when trying to find the program to start. her. And 'necessary that the method is declared with a void return type (ie, no arguments are returned by the method). The main method contains an array of string arguments that can contain the command line arguments. The braces {and} mark the beginning and the end of the class. The program contains "System.out.println (" Hello "); 'a line that tells the computer to print a line of text to say,' Hello World 'The semicolon.'; 'End the line of code.' s double slashes '/ comments /' are used which can be used to describe what he is doing a source code. All right of the bars in the same line is not filled in, as they are only comments in a program.

Java Main method statements

class MainExample1 {public static void main(String[] args) {}}
class MainExample2 {public static void main(String []args) {}}
class MainExample3 {public static void main(String args[]) {}}

They are all 3 main valid method shown above takes a single argument array of strings.

Compile and run an application

To compile and run the program you need the JDK distributed by Sun Microsystems. The JDK contains documentation, examples, installation instructions, class libraries and packages, and instruments. Download editor like Textpad / EditPlus to write the code. You need to keep the source code, with an extension of Java .. The file name must be the name of the public class in the file.

Steps to follow to save, compile and run a Java application

Step 1:Save the program With .java Extension.
Step 2:Compile the file from DOS prompt by typing javac <filename>.
Step 3:Successful Compilation, results in creation of .class containing byte code
Step 4:Execute the file by typing java <filename without extension>


Java Development Kit

Java Developer Kit is distributed by Sun Microsystems. The JDK contains documentation, examples, installation instructions, class libraries and packages and tools

javadoc

The javadoc tool provided by Sun is used to produce the documentation of an application or a program,


Jar files

A JAR file is used to group related class files into a single file for more compact storage, distribution and transmission.


PATH and CLASSPATH

The following are general programming errors, which I think every beginning java programmer find. Here's a solution on how to solve problems when running on a Windows machine.

1. "Javac 'is not recognized as an internal or external command, program or batch file

When you get this error, you must conclude that the operating system can not find the compiler (javac). To resolve this error, you must set the PATH variable.

How to set the PATH variable?

First, the PATH variable is set so that you can compile and run programs from any directory without having to type the full path of the command. To set the path to the JDK on your system (Windows XP), add the full path to the JDK <version> \ bin to the PATH variable. Set the path follows on a Windows computer:

un. Click Start> Click on "My Computer" and click "Properties"
b. Variables Click Advanced> Environment.
c. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for the path is:

C:\jdk<version>\bin (JDK <version is just the name of the directory where you installed the JDK)

If there is already some elements of the PATH variable should add a semicolon and then add the previous value (version is replaced with the version of the JDK). The new path takes effect in each new Command Prompt window you open after setting the PATH variable.


2. Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorld

If you receive this error, Java can not find the file compiled bytecode, HelloWorld.class.If both class files and source code are in the same working directory, and if you try to run the program from the current working directory that the program should run smoothly as, try to find the Java class file. represents the current directory. If the class files are present in another directory than the java file we need to set the CLASSPATH pointing to the directory containing the compiled class files.CLASSPATH can be adjusted as follows on a Windows computer:

a. Click Start > Right Click “My Computer” and click on “Properties”
b. Click Advanced > Environment Variables.

Add the location of the folder class' that contains all Java classes in the user variables.

If there are already some items in your CLASSPATH must add a semicolon and then add the new value. The new classpath takes effect in each new Command Prompt window you open after setting the classpath.


How to make an active link on Facebook status?

How to make an active link on Facebook status?

Post a Facebook status has been a part of our daily lives. The state of Facebook is not only your online presence, but also helps to increase the popularity;) TRP and social access. When you tag someone in your state, it will become a link (pointed to their profile page) automatically. But if you want to do some 'blue link status or someone with different name tags in front of the Facebook page with custom text, this post will be helpful to you.



1.First, you must know the ID number of your friend or your page. (Click here to find facebook ID).

Facebook ID
2.After get the ID number, just paste this code on your facebook status.

@@[0:[PAGE_OR_PROFILE_ID:1:CUSTOM_TEXT_YOU_LIKE]] @[PAGE_OR_PROFILE_ID:0]
 Change the ID and the text field and edit the code, it becomes a state of the connection to a target audience of your friend or Facebook page.

3 Put the situation and go.


01

02
How to make the connection status of nowhere without using Facebook ID?

Copy this code and paste it in your Facebook status, the text becomes colored links.
@[1: ]@@[1:[0:1: Type Here Any Custom Texts]]

If you like this and want more tips tricks and tutorials like this, please like us on IT Magazine
LG Announce New LG G2 Smartphone

LG Announce New LG G2 Smartphone




After months of leaks and rumors, it's time we take a look at the LG G2 true. The successor to last year's Optimus G has just been officially announced, as you would expect the flagship usual, is loaded with lots of features and smart features, not to mention some interesting new approaches to design smart phones. The new device, which runs on Android 4.2.2 Jelly Bean, has a larger screen than its predecessor, packing a 5.2-inch 1080p IPS panel. It also offers a GHz quad-core Snapdragon SoC 800 2.26. In addition, you can expect to find a 13 megapixel camera with optical image stabilization (and a 2.1MP front-facing camera), 24 bit/192kHz high fidelity, a 3000 mAh non-removable, 2 GB of RAM and your choice internal memory of 16GB or 32GB. Coming in black and white, and LG says that the G2 will launch in markets around the world over the next eight weeks, and we have confirmation that the four major U.S. carriers have decided to add the device to their line.



What about these unique features? As you may have seen in the filtered images (or if you happened to look at the picture before the release), the back of the phone is much busier than many other phones. LG chose to put the volume control and the power button just below the rear camera instead of the edge of the phone. The idea of ​​this, we are told, is to make the experience a little 'less awkward hand on a phone so big. Since the device is wider than smartphone ancient times, LG wanted to put more controls in place that your fingers rest in a natural way. LG also boasts thin frames - 0.1 inches thick, to be exact - thanks to a new method of dual routing in which the touch sensor uses two connectors.

On the software side, LG has done more than throw a shade Vienna Boys Choir. It offers features such AnswerMe, answering incoming calls when you put the phone to your ear, and Slide also allows you to make a gesture with three fingers to "scroll" through open applications off the screen for multitasking. Link text is another interesting idea where the phone is inserted at the level and relevant links with them into other applications - obviously, this is similar to what we saw earlier iOS. There are also guest mode, allowing another user to have access to the phone (LG refers to this as a type of Kid Mode) drawing a different lock screen gesture. We put the software in more detail here, so check it out for more information. If you are interested in the full specification and how it compares with other flagship programs, we have that here. We also have our hands here for more impressions of the device as well as a press release and gallery below.



General
Operating FrequencyGSM 850/900/1800/1900 MHz, HSDPA 900/1900/2100 MHz, LTE 900 / 1800 / 2100 / 2600 / 850 MHz
Dimensions138.5 x 70.9 x 8.9 mm
Weight143g 
AvailabilityYet To Release
Display
Touch ScreenYes, Capacitive Touch screen with Multi Touch
Display TypeTrue HD-IPS + LCD capacitive touch screen, 16M colors
Display Size1080 x 1920 pixels, 5.2 inches
Software
Operating SystemAndroid OS, v4.2.2 (Jelly Bean)
BrowserHTML5
JavaYes, via  Java MIDP emulator
Camera
Back Camera13 MP, 4128×3096 pixels, autofocus, LED flash
Front Camera2.1  MP, 1080p recording
FeaturesGeo-tagging
VideoYes Full HD Recording
Processor
CPU2.26 GHz Krait 400 Quad-core Processor
ChipsetQualcomm MSM8974 Snapdragon 800
GPUAdreno 330
Memory
RAM2 GB RAM
Internal Memory32 GB (24GB user memory)
External MemoryNo
Battery
TypeLi-Po 3000 mAh
Stand By Time–
Talk Time–
Connectivity
3GYes, HSDPA, 42 Mbps; HSUPA, 5.76 Mbps;
4GYes, LTE, Cat3, 50 Mbps UL, 100 Mbps DL
GPRSYes
EdgeYes
BluetoothYes, v4.0 with A2DP
WifiYes, Wi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct, DLNA, Wi-Fi hotspot
GPSYes with A-GPS support and GLONASS
NFCYes
USBYes, microUSB v2.0
Entertainment
Video PlayerYes, Video Formats:  MP4, H.264, H.263, WMV   and more.
Music PlayerYes, Music Formats : MP3, WAV, MID, Audio Streaming
Ring ToneVibration, MP3, Polyphonic
RadioFM Radio
SoundLoud Speaker, 3.5mm Audio Jack
Others
ColorsBlack, White
Messaging  and Social NetworkSMS, MMS, IM, Email, Facebook, Twitter, YouTube, Google, etc
SensorsAccelerometer, Gyro, Proximity, Compass

Tuesday, August 6, 2013

HP ProBook 4545s Notebook PC

HP ProBook 4545s Notebook PC

HP ProBook 4545s Notebook PC


For intelligent performance anywhere, choose the HP ProBook 4545s Notebook PC. This notebook is designed for professionals who require reliable performance while on the road. Equipped with a Dual-Core A6-4400M 2.7GHz AMD processor and 8 GB of DDR3 memory, the portable machine will never allow the efficiency of your slowdown. It is equipped with a memory of 750 GB, so you can enjoy bringing tons of files without adding bulk. You can also add programs CD and DVD using the DVD ± RW optical drive. Working with spreadsheets, presentations or watching movies without problems in its 15.6 "LED-backlit HD anti-glare. This laptop is equipped with USB 3.0 ports provide high-speed connectivity for USB devices. Get quick access to the network in the 802.11b / g / n wireless networks. s for HP ProBook 4545s Notebook PC now!

What It Is and Why You Need It:

  • AMD Dual-Core A6-4400M 2.7GHz processor and 8GB of DDR3 or provide reliable speed and power to handle the most demanding tasks smoothly
  • Storage of 750 GB, has a large space for storage applications and programs hungry
  • 15.6 "LED-backlit HD anti-glare, provides clear visual brightness balanced to avoid eyestrain
  • 64-bit operating system Windows 8 Pro, upgrading the performance of the platform and the system
  • USB 3.0 ports, a USB connection provides high-speed USB devices