You are here:   HomeJava Programming
by Dinesh Thakur Category: Java Language

Java is a robust, general-purpose, high-level programming language and a powerful software platform. It is also object-oriented, distributed, portable and multi-threaded. Java follows the 'Write - once - run - anywhere' approach. All Java programs must run on the Java platform that has two components, the Java Virtual Machine (JVM) and the Java Application Programming Interface (API).



 
by Dinesh Thakur Category: Java Language

It is better to have all numerical, strings and characters in terms of objects so to avail the facility of methods supplied with those objects. In that case, even if we want to perform any arithmetical operation, we do it with the help of methods instead of using arithmetical operators. But by this approach, performance decreases because method calls are relatively expensive.

 
by Dinesh Thakur Category: Java Language

Comments are usually non executable statements which are meant for the programmers own convenience. A comment is usually explanation regarding the statement. There are three types of comments in java. They are:



 
by Dinesh Thakur Category: Java Language

Bytecode: The intermediate code produced by certain semi-compiled programming languages, in particular SMALLTALK and JAVA, So called because each instruction is one byte long. Source programs are com piled into bytecode, which is then executed by a bytecode INTERPRETER or VIRTUAL MACHINE that forms part of the language RUN-TIME SYSTEM. In such languages, programs may be distributed either in SOURCE CODE or in bytecode form.

 
by Dinesh Thakur Category: Java Language

A very popular WEB SERVER developed and distributed free of charge as OPEN SOURCE software by an Internet-based community of unpaid volunteers. Apache's great strengths lie in the availability of its source code and its well-defined interface for writing add-on modules: many large and profitable e-commerce sites run on modified versions of Apache. The name is a wince-making pun on the phrase 'a patchy server', bestowed because of the numerous software PATCHES released for it in its early days.

 
by Dinesh Thakur Category: Introduction to Java

The different languages reflect the different styles of programming. Procedural programming decomposes a program into various different functional units, each of which can gather and manipulate data as needed.

 
by Dinesh Thakur Category: Introduction to Java

Java is the object oriented, similar to C++ high-level programming language and architecture neutral developed by Sun Microsystems. Java was originally called OAK. Object Oriented meaning the capability to reuse code. Secondly, it is platform independent i.e. we don't have to develop separate applications for different platforms. It is possible to develop a single application which can run on multiple platforms like Windows, UNIX, and Macintosh systems. Java was designed for hand-held devices and set-top boxes.



 
by Dinesh Thakur Category: Introduction to Java

Inheritance is a compile-time mechanism in Java that allows you to extend a class (called the base class or superclass) with another class (called the derived class or subclass). In Java,inheritance is used for two purposes:



 
by Dinesh Thakur Category: Introduction to Java

Initializing a variable is considered very helpful while making programs. We can initialize variables of primitive types at the time of their declarations. For example:

 
by Dinesh Thakur Category: Introduction to Java

'this' pointer is used when a method has to refer to an object that has invoked it. 'this' pointer can be used inside any method to refer to the current object. This means that this is always used as a reference to the object on which the method was invoked. We can use this anywhere as reference to an object of the current class type is permitted. Since, it is illegal in Java to declare two local variables with the same name inside the same or enclosing scopes; we can have local variables, which include formal parameters to methods, which may overlap with the names of the class instance variables. However, when a local variable has the same name as an instance variable, the local variable hides the instance variable.



 

Page 2 of 80



Subscribe To Free Daily Newsletter!

Get Free News Updates Delivered Directly To Your Inbox
About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to contact us.



What's New and Popular