Category Archives: Java Programing

Java program to print matrix

class Matrix
{
public static void main(String args[])
{
int i,j,k;
int mat1 [][]={ {10,11,12}, {13,14,15}, {16,17,18} };
int mat2 …

Posted in Java Examples | Leave a comment

Java program to reverse a number

/********** Java Program To Print Reverse Of A Number ************/

class Reverse
{
public static void main(String args[])
{
int …

Posted in Java Examples | Leave a comment

Java program for pyramid of numbers

class pyramid
{
public static void main(String args[])
{
int i,j;
for(i=1;i< =3;i++)
{
for(j=1;j< =i;j++)
System.out.print(j+”\t”);
System.out.println();
}
}
}

/* …

Posted in Java Examples | Leave a comment

Java program implement DES algorithm

/*************** DES **************
*The program listed below, testDES.java:
takes the DES key input and a text string (to be encrypted) …

Posted in Java Examples | Leave a comment

Example java program method overloading

/* Function Overloading program in java. The program overloads the area() function and calculates the area for square, rectangle and …

Posted in Java Examples | Leave a comment

Java program to read a file

/***** Java Program to read a file and display it on the screen */

import java.io.*;
public class LioFile
{…

Posted in Java Examples, Technology | Leave a comment

java program to implement bubble sort

/* Java program on Arrays – Bubble sort on numbers
*/

import java.io.*;
class Bubble
{
public static void main(String …

Posted in Java Examples | Leave a comment

Java program Calculation of Simple and compound Interest

/*
First.java
*/

public class First
{
static double amt,sim,comp,princ = 1000,rate = 0.09;
static int n=2;

public First()
{…

Posted in Java Examples | Leave a comment

Java program to check armstrong number

An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is …

Posted in Java Examples | Leave a comment

Java program to print Floyd’s triangle

import java.util.Scanner;
 
class FloydTriangle
{
   public static void main(String args[])
   {
      int n, num = 1, …

Posted in Java Examples | Leave a comment

Java program to check palindrome

Java program to check if a string is a palindrome or not. Remember a string is a palindrome if it …

Posted in Java Examples | 1 Comment

Java program to swap two numbers

import java.util.Scanner;
 
class SwapNumbers
{
   public static void main(String args[])
   {
      int x, y, temp;
      …

Posted in Java Examples | Leave a comment

Java program to find odd or even

This java program finds if a number is odd or even. If the number is divisible by 2 then it …

Posted in Java Examples | Leave a comment

Java program to print multiplication table

import java.util.Scanner;
 
class MultiplicationTable
{
   public static void main(String args[])
   {
      int n, c;
      System.out.println(“Enter …

Posted in Java Examples | Leave a comment

Java program to find all substrings of a string

Java program to find substrings of a string :- This program find all substrings of a string and the prints …

Posted in Java Examples | Leave a comment

Java Revision Notes for Technical Interview

  • Java is an object oriented (OO) language, which has built in support for multi-threading, socket communication,automatic memory management (ie. garbage

Posted in Freshers, Java Programing, Programing, Technical Interviews Questions | Tagged , , | Leave a comment

Java Programing Test -6

Posted in Java Programing, Programing | Tagged , | Leave a comment

Java Programing Test -5

Posted in Java Programing, Programing | Tagged , , | Leave a comment

Spring Framework Introduction

Spring framework is widely used Java Open source framework.This is developed by springsource community.The latest version of spring framework is

Posted in Java Programing, Programing | Tagged , | Leave a comment

Spring HelloWorld Example using Maven Build tool

This Java tutorial is used to make a simple Spring HelloWorld program using maven build tool.

Technologies used in this

Posted in Java Programing, Java programing concepts, Programing | Leave a comment

Maven Interview Questions and Answers

Maven Interview Questions and Answers for you :

Here we have written all maven based interview questions with answers,solutions and

Posted in Java Programing, Java Questions & Answers | Tagged | Leave a comment

Java Strings Interview Questions With Answers

  Java Strings

 1.Is string a class or permitive data types ?

Ans :Class.

2.String is immutable or not

Posted in Java Programing, Java Questions & Answers, Programing | Tagged | 2 Comments

Java Networking Interview Questions and Answers

Java Networking Concepts :

1) The API doesn’t list any constructors for InetAddress- How do I create an

InetAddress instance?

Posted in Freshers, Interview Help, Java Programing, Programing, Technical Interviews Questions | 1 Comment

Tips to Use Map in Java : Remember Always

Map is a interface that is used to store key/value pairs.When we used Map then we generally mistakes.Here i will

Posted in Java Programing, Java programing concepts, Programing | Tagged , , , | Leave a comment

Map Interface with Example in Java

 public interface Map<K,V>

 Map -Map is a set of couple things one is key and other is

Posted in Freshers, Java Programing, Java programing concepts, Programing, Technical Interviews Questions | Tagged , , , | Leave a comment

EJB – J2EE interview questions and answers

What is EJB ?
Enterprise JavaBeans.

What is EJB container ?
A container that implements the EJB component contract of …

Posted in Freshers, Java Programing, Java Questions & Answers, Programing, Technical Interviews Questions | Tagged , , , | Leave a comment

Differnece between Comparable and Comparator interfaces in java with Example

 Here we have explain Differnece between Comparable and Comparator interfaces  with Example

Comparable and Comparator interfaces both are used

Posted in Freshers, Java Programing, Java programing concepts, Programing, Technical Interviews Questions | Tagged , , , | Leave a comment

J2EE Basics-Interview Questions and Answers

J2EE Basics Interview Questions and Answers

What is J2EE?
J2EE is an environment for developing and deploying enterprise applications. The …

Posted in Freshers, Java Programing, Java Questions & Answers, Programing, Technical Interviews Questions | Tagged , , , , , | Leave a comment

How to use Comparator with SortedSet with Example

 SortedSet -SortedSet is a type of Set that provide us ascending ordering of collection of objects.

Set -

Posted in Freshers, Java Programing, Java programing concepts, Java Programing tips, Programing, Technical Interviews Questions | Tagged , , , | Leave a comment

How to Use Comparable Interface in Java with Example : Sorting of Objects

 Comparable is a interface that is used to sort the java objects mostly.Comparable interface implementations provide a natural ordering for …

Posted in Freshers, Java Programing, Java programing concepts, Programing, Technical Interviews Questions | Tagged , , , | Leave a comment