• Home
  • About
  • Contact
MENU

Cofeeinpot

  • JAVA
  • Random
All post
File operations in c
C

File operations in c

June 15, 2020
Files are the foremost visible and therefore the most precious feature of any computing system to its users. Files provide a mechanism fo...
Read More
Swap two variable values without temp variable
Programs

Swap two variable values without temp variable

February 20, 2018
void swap(int x,int y) {         x=x+y;         y=x-y;         x=x-y; }
Read More
How you can force the garbage collection?
Garbage Collection Java Java Virtual Machine JVM Languages Memory Management Programming

How you can force the garbage collection?

January 28, 2018
Garbage collection automatic process and can't be forced. You could request it by calling System.gc(). JVM does not guarantee that GC...
Read More
Defining an abstract class
AbstractType Java Source code

Defining an abstract class

December 29, 2011
Definition:- A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. Examp...
Read More
Difference and similarities between an interface and an abstract class
Abstract type Class (computer programming) Implementation Interface (Java) Java Object (computer science)

Difference and similarities between an interface and an abstract class

December 29, 2011
--> Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Interfa...
Read More
Difference between private, protected, and public
Class (computer programming) Declaration (computer programming) Java Private Source code

Difference between private, protected, and public

December 29, 2011
--> These keywords are for allowing privileges to components such as java methods and variables. Public: accessible to all cla...
Read More
classification of objects hierarchy Inheritance; Object oriented programming Java Languages Object-oriented Programming Single inheritance

Inheritance

December 03, 2011
Inheritance is the process by which one object acquires the properties of another object. This shows the hierarchical classificati...
Read More
Constructor
Constructor Constructor does not have return type Constructor types Copy Constructor Default constructor Initialization of objects Java not even void Parameterized constructor

Constructor

June 19, 2011
Constructor is used to initialize objects of its class. A constructor initializes an object immedia...
Read More
Methods/Functions
Methods and Functions Methods functions communications between objects method signatures Primitive data type

Methods/Functions

June 19, 2011
Methods are functions that operate on instances of classes in which they are defined. Objects can ...
Read More
Class
Class template for objects General form of class instance variable method variable instance of class Object blue print of objects Languages

Class

June 18, 2011
Class is a template for an object. General form of class includes: class classname {       ...
Read More
Program for border layout example
Applets BorderLayout Import Java Languages Layout manager Programming swing

Program for border layout example

November 17, 2010
import java.awt.*; import java.awt.event.*; import java.applet.*; public class BorderLayoutExample extends Applet {     public static...
Read More
Program for component demo
Applet GridLayout HTML Init Java Java applet Languages Programming

Program for component demo

November 17, 2010
import java.awt.*; import java.applet.*; public class ComponentDemo extends Applet {     //Declaring AWT Components     TextField txtf...
Read More
Create a frame window within an applet
Applet Import Java Java applet Languages Programming WindowAdapter

Create a frame window within an applet

November 17, 2010
import java.awt.*; import java.awt.event.*; import java.applet.*; class SampleFrame extends Frame {     SampleFrame(String title)   ...
Read More
Program for button demo
Applets BorderLayout Import Java Languages Layout manager Programming swing

Program for button demo

November 17, 2010
import java.awt.*; import java.awt.event.*; import java.applet.*; public class BorderLayoutExample extends Applet {     public static...
Read More
Taking a closer look towards program
Comments in Java Compilation and execution Taking a closer look towards the program Documentation comment Multi-line comment Single-line comment Types of comments in Java visibility of class members

Taking a closer look towards program

December 22, 2009
We will have a closer look at program written in last post Compilation and execution: - /* This program welcomes you to the world ...
Read More
Compiling a java program; How to compile a Java program?; Executing a java program; How to execute a java program; Java command line argument; Java program to demonstrate use of command line

Compilation and Execution

December 22, 2009
As I mentioned in my post regarding Bytecode , compiling and executing a program involves following steps: Step1: Write the source co...
Read More
Data Types
ASCII Data type Floating point integer Java Languages Programming

Data Types

December 12, 2009
Data type: - A data type is a term that refers to the kind of data that variable may hold in a program. For example: - ...
Read More
Variables and constants
constants Data type variables

Variables and constants

December 12, 2009
Variable: - An entity that may vary during program execution is called variable. Variable names are names given to memory location. In ...
Read More
Java Applets and applications and servlets
application and servlet; Java applet; Java application; Java servlet; Internet programming; programming for the internet; client machine; server machine; web browser; applet; Java applets

Java Applets and applications and servlets

December 12, 2009
Some of programs that we come across in Java programming. Applet programs. Application programs. Servlet programs. Ap...
Read More
What is Bytecode?
What is Bytecode?; Bytecode; Intermediate code; Bytecode is not executable by computer; Translation of bytecode into machine code; Java interpreter; JVM; Java Virtual Machine;

What is Bytecode?

December 12, 2009
Bytecode enables Java to be a truly object-oriented language. This makes Java different from other languages. As I mentioned in ...
Read More
Subscribe to: Posts (Atom)

Recent

Popular

  • Difference between private, protected, and public
    --> These keywords are for allowing privileges to components such as java methods and variables. Public: accessible to all cla...
  • Data Types
    Data type: - A data type is a term that refers to the kind of data that variable may hold in a program. For example: - ...
  • Swap two variable values without temp variable
    void swap(int x,int y) {         x=x+y;         y=x-y;         x=x-y; }

Comments

Subscribe Here

Popular Posts

  • How you can force the garbage collection?
    Garbage collection automatic process and can't be forced. You could request it by calling System.gc(). JVM does not guarantee that GC...
  • Difference and similarities between an interface and an abstract class
    --> Abstract class is a class which contain one or more abstract methods, which has to be implemented by sub classes. Interfa...
Copyright © 2020 Cofeeinpot All Right Reserved