iTSCET

iT Portal

Category Archives: Java

Setting Up javac Command on Windows 7


Setting Up javac Command on Windows 7. Advertisements

Continue reading

Explain the difference between DBMS and RDBMS ?


DBMS: DBMS offers organized way of storing, managing and retrieving information. A DBMS is a storage area that persist the data in files. To perform the database operations, the file should be in use. Relationship can be established between 2 files. There are limitations to store records in a single database file depending upon the …

Continue reading

Java Memory Allocation – Part 4


Constructor • No return type • Not mandatory • Can be overloaded. • Without any parameter is called as default constructor. • If no, user defined constructor then implicit constructor initialize member variable to default values. o Numeric data types to 0. o Char to null(‘’). o Boolean to false. o Reference variables to null. …

Continue reading

Java basics – Part 3


What are the Primitive Data Types in java? • Integer Types o Byte(1 byte) o Short(2 bytes) o Int(4 bytes) o Long(8 bytes) • Floating Types o Float(4 bytes) o Double(8 bytes) • Textual Type o Char(2 bytes) • Logical Type o Boolean(1 byte) Comments in Java • A single line comment in Java start …

Continue reading

Java Programming basics – Part 2


Java Programming • A Java program file is an ordinary text file with “.java” extension. • Any code in java is to be written inside a class. Just like the language, the program execution starts with the main method. In C, the function main is a global function. But in java, even the main method …

Continue reading

Java – Object Oriented Programming – Part 1


What is Object Oriented Programming? • The entire program is visualized as a number of objects interacting with each other. • An object is a self contained entity that contains attributes(data) and behaviors (functions). What is Abstraction? • The process of exposing the relevant details and hiding the irrelevant details is called Abstraction. What is …

Continue reading

JSP- Java Server Pages


Originally posted on Java Code Book:
Java Server Pages (JSP)

Continue reading

J2EE Important Interview Questions


1. What is J2EE? J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications. 2. What is the J2EE module? A J2EE module consists of one or more J2EE components for …

Continue reading

How to find my Host Name and IP address ????


Find your Host Information An IP address is a numerical unique identification number which is assigned to the devices participating in the network for communication. To get IP address of our own system in a java program we will be using InetAddress class. Java program to find out your Host Name and Ip import java.util.*; …

Continue reading

Important Methods of Math Class of Java


Methods of the java.lang.Math Class The methods of the Math class are static and are accessed like any static • abs() The abs() method returns the absolute value of the argument. Eg: x = Math.abs(99); // output is 99 x = Math.abs(-99) // output is 99 • ceil() The ceil() method rounded up to the …

Continue reading