Breaking News
You are here: Home / Notes / SEM-4 / JAVA

Category Archives: JAVA

Feed Subscription

this is a subcategory of sem-4

INTRODUCTION TO JAVA

INTRODUCTION TO JAVA

INTRODUCTION TO JAVA   Java is an object-oriented programming language with a built-in application programming interface (API) that can handle graphics and user interfaces and that can be used to create applications or applets. Because of its rich set of API’s, similar to Macintosh and Windows, and its platform independence, Java can also be thought of as a platform in ... Read More »

Java Development Kit and Its Uses

java program execution process

Java Development Kit and Its Uses   The Java Development Kit (JDK) is a Sun Microsystems product aimed at Java developers. JDK comes with a collection of tools that are used for developing and running Java program. It is a bundle of software that you can use to develop Java based applications. Java Development Kit is needed for developing java ... Read More »

java basic concepts

java basic concepts

java basic concepts   Identifiers:           They are used for naming classes, methods, variables, arrays, labels, packages and interface in a program. Each variable has a name by which it is identified in the program. It’s a good idea to give your variables valuable names that are closely related to the values they hold. In a simple word they are ... Read More »

Java Control Statement

Java Control Statement

Java Control Statement The main purpose of Control Statement is to control the flow of the program. The control statements includes decision making and loops. Decision making is done by applying different conditions in the program. If the conditions are true, the statements following the condition are executed. The values in a condition are compared by using the comparison operators. ... Read More »

Java Class And Object

Java Class And Object

Java Class And Object ♣ Simple Class: Java classes contain fields and methods. A field is like a C++ data member, and a method is like a C++ member function.   Objects and classes are a fundamental part of object-orientated programming, and therefore Java. A class contains both data (referred to as attributes), and executable code (referred to as methods). In ... Read More »

Java Interfaces

Java Interfaces

Java Interfaces   Introduction to Interfaces: Java does not support Multiple Inheritance, That is, Classes in java can not have more then one super class. Java provides an alternate approach known as interfaces to support the concept of Multiple Inheritance. Although a Java cannot be a subclass of more than one superclass. It can implement more than one interface.   ... Read More »

Java Exceptions

Java Exceptions

Java Exceptions   ♣ Introduction to Exceptions: A Java exception is an object that describes an exceptional (that is, error) condition that has occurred in a piece of code. When an exceptional condition arises, an object representing that exception is created and thrown in the method that caused the error. That method may choose to handle the exception itself, or pass ... Read More »

Java Threads

java threads

Java Threads   ♣ Introduction to Threads: Windows 95 can execute several programs simultaneously; this ability is known as Multitasking. In System’s terminology it is called “Multithreading”.   Java programs that contain only a single sequential flow of control is called single-threaded programs. Every program has at least one thread. A Thread is similar to program that have single flow of ... Read More »

Java Strings

Java Strings

Java Strings   String Constructors: Default Constructor: To create an empty String. String(); Ex. String s = new String();   To create String from String literal Ex. String s1= new String(“Java”); or String s1=”Java”; For String literal, Java automatically constructs a String object. Thus you can use a string literal to initialize String object.   To create String from another ... Read More »

Java Packages

Java Packages

Java Packages   Introduction: Many times when we get a chance to work on a small project, one thing we intend to do is to put all java files into one single directory. It is quick, easy and harmless. However if our small project gets bigger, and the number of files is increasing, putting all these files into the same ... Read More »

Scroll To Top