NetBeans For Java How To Install and Get Started with Java Programming (on Windows)

NetBeans (@ http://netbeans.org) is an open-source Integrated Development Environment (IDE). NetBeans began in 1996 as a Java IDE student project at Charles University in Prague. Sun Microsystems acquired NetBeans in 1999. In 2010, Oracle acquired Sun (and thus NetBeans). Compared with its rival Eclipse (http://www.elicpse.org) (both are open-source, so I don’t know what are they …

NetBeans For Java How To Install and Get Started with Java Programming (on Windows) Read More »

Example to connect to the mysql database in java

For connecting java application with the mysql database, you need to follow 5 steps to perform database connectivity. In this example we are using MySql as the database. So we need to know following informations for the mysql database: Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver. Connection URL: The connection URL …

Example to connect to the mysql database in java Read More »

Why Magic numbers are bad? [JAVA TIP]

Hey guys, today I’d like to share a tip about “How to avoid magic numbers in your code”. Let’s look at the first code snippet: float getScaledPageWidth(float zoomRation) { return zoomRation * 210; } And here is the updated version: static final float A4_PAGE_WIDTH = 210;   float getScaledPageWidth(float zoomRation) { return zoomRation * A4_PAGE_WIDTH; …

Why Magic numbers are bad? [JAVA TIP] Read More »

How to compare strings correctly [JAVA Tip]

The main objective of this post is to explain the correct method of comparing the strings in Java. Can you answer the following quiz?  * QUIZ: Guess output of the following code snippet: String osName = System.getProperty(“osName”); if (osName.equals(“Windows”)) {        System.out.println(“You’re using Windows”); }   For now, let write down your answer on paper. …

How to compare strings correctly [JAVA Tip] Read More »

How to run Java program from CMD

Let’s say your file is in C:\mywork\ Run Command Prompt C:> cd \mywork This makes C:\mywork the current directory. C:\mywork> javac filenamehere.java This runs javac.exe, the compiler. You should see nothing but the next system prompt… C:\mywork> dir javac has created the filenamehere.class file. You should see filenamehere.java and filenamehere.class among the files. C:\mywork> java …

How to run Java program from CMD Read More »

How to Install the Java Software Development Kit (JDK)

Before you can create and modify Java programs, you’ll need the Java Software Development Kit. You can download the kit (also known as Java SDK or JDK) for free from Oracle as a single installer file, which makes installation quick and easy. Learn the best way to download and install the Java Software Development Kit …

How to Install the Java Software Development Kit (JDK) Read More »

Introduction to Computer Languages

Low Level Languages Low-level languages are designed to operate and handle the entire hardware and instructions set architecture of a computer directly. Low-level languages are considered to be closer to computers. In other words, their prime function is to operate, manage and manipulate the computing hardware and components. Programs and applications written in low-level language …

Introduction to Computer Languages Read More »

Advantages of JAVA

The various advantages of java are Simple Secure Portable Object-Oriented Robust Multi Threaded Architecture-neutral Interpreted High Performance Distributed Dynamic Let’s examine what each of the others implies Simple Java was designed to be easy for the professional programmer to learn and use effectively.if you already understand the basic concepts of object – oriented programming, learning …

Advantages of JAVA Read More »

What is Java?

JAVA is high level programming language developed by Sun Microsystems introduced in 1995. Java is an object oriented language similar to C++,but simplified to eliminate language features that cause commons programming errors. Java is a general purpose programming language with a number of features that make the language well suited for use on the world …

What is Java? Read More »

Tech Blicks Avertise Icon
Special Offer - Get Linux Hosting for Rs 699/- only