Main menu
featured posts
health
Technology
business posts
Powered by
Blogger
.
Total Pageviews
Name
your name
Email
*
Your Email
Message
*
your message
Followers
Translate
Pages
Home
Pages
Home
3:52 AM
Unknown
Dynamic Binding in java
Suppose you have 3 Java classes: A, B, and C. Class B extends A, and class C extends B. Think of the class inheritance hierarchy alphabet...
2:20 AM
Unknown
how final modifier works in java
In Java, what does the ‘final’ modifier mean when applied to a method, class, and an instance variable? ...
2:16 AM
Unknown
What’s the difference between equals() and == in java ?
Before discussing the difference between “==” and the equals() method, it’s important to understand that an object has both a location i...
9:48 PM
Unknown
Java interface versus abstract class
An interface differs from an abstract class because an interface is not a class. An interface is essentially a type that can be satisf...
9:46 PM
Unknown
When to use abstract methods in Java?
Why you would want to declare a method as abstract is best illustrated by an example. Take a look at the code below: /* the Figure class...
1:30 AM
Unknown
In Java, will the code in the finally block be called and run after a return statement is executed?
The answer to this question is a simple yes – the code in a finally block will take precedence over the return statement. Take a look at...
1:25 AM
Unknown
what is reflection in java
The word reflection implies that the properties of whatever being examined are displayed or reflected to someone who wants to obser...
9:53 PM
Unknown
Get Http Status code using java code
import java.net.HttpURLConnection; import java.net.URL; class ResponseCodeCheck { public static void main (String args[]) throw...
10:41 PM
Unknown
Difference between string and stringbuffer class
String It is used to manipulate character strings that cannot be changed (read-only and immutable). StringBuffer: A StringBuffe...
1:04 AM
Unknown
4 Version of Java
12:56 AM
Unknown
Write a program to generate Harmonic Series.
/*Example Input - 5 Output - 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28 (Approximately) */ class HarmonicSeries { public static void mai...
2:20 AM
Unknown
Complain Of "Enter Key"
Dear Computer User, I Do Appreciate Your Kind Attitude Towards The Keys 0f Keyboard, But 0ne question… Why Do You Press All Keys Softl...
2:18 AM
Unknown
Idiot Girl
Girl: Which computer do u have? Boy: I have a computer with intel core i7 processor at 3.3 ghz, windows 7, 64 bit, 8gb ram & nvidia ...
2:15 AM
Unknown
Write a program to find average of consecutive N Odd no. and Even no
class EvenOdd_Avg { public static void main(String args[]) { int n = Integer.parseInt(args[0]); int cntEven = 0, c...
9:04 PM
Unknown
1 to 10 Display Triangle
/* 1 2 3 4 5 6 7 8 9 10 ... N */ class Output1 { public static void main(String args[]) { int c = 0; int n = I...
9:01 PM
Unknown
Write a program to Find whether number is Prime or Not.
class PrimeNo { public static void main(String args[]) { int num = Integer.parseInt(args[0]); int flag = 0; ...
1:16 AM
Unknown
Write a program to find whether no. is palindrome or not.
/*Example : Input - 12521 is a palindrome no. Input - 12345 is not a palindrome no. */ class Palindrome { public static void ma...
1:15 AM
Unknown
Display Triangle
/* 0 1 0 1 0 1 0 1 0 1 */ class Output2 { public static void main(String args[]) { for (int i = 1; i <= 4; i++) { ...
4:17 AM
Unknown
Write a program to Display Invert Triangle using while loop.
/*Example : Input - 5 Output : 5 5 5 5 5 4 4 4 4 3 3 3 2 2 1 27 */ class InvertTriangle { public static void main(String a...
1:14 AM
Unknown
Write a program to find whether given no. is Armstrong or not.
/*Example : Input - 153 Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no. */ class Armstrong { public static void main(Str...
10:50 PM
Unknown
switch case demo
/*Example : Input - 124 Output - One Two Four */ class SwitchCaseDemo { public static void main(String args[]) { t...
8:15 PM
Unknown
Program to Display Multiplication Table
class MultiplicationTable { public static void main(String args[]) { int num = Integer.parseInt(args[0]); System.o...
8:14 PM
Unknown
Write a program to Swap the values
class Swap { public static void main(String args[]) { int num1 = Integer.parseInt(args[0]); int num2 = Integer.par...
8:14 PM
Unknown
Write a program to convert given no. of days into months and days.(Assume that each month is of 30 days)
/*Example : Input - 69 Output - 69 days = 2 Month and 9 days */ class DayMonthDemo { public static void main(String args[]) { ...
8:14 PM
Unknown
Write a program to generate Harmonic Series.
/*Example : Input - 5 Output - 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28 (Approximately) */ class HarmonicSeries { public static void ma...
8:14 PM
Unknown
Write a program to find average of consecutive N Odd no. and Even no.
class EvenOdd_Avg { public static void main(String args[]) { int n = Integer.parseInt(args[0]); int cntEven = 0, c...
2:35 AM
Unknown
Write a program to concatenate string using for Loop
/*Example : Input - 5 Output - 1 2 3 4 5 */ class Join { public static void main(String args[]) { int num = Integer.par...
10:58 PM
Unknown
Write a program to find SUM AND PRODUCT of a given Digit.
class Sum_Product_ofDigit { public static void main(String args[]) { int num = Integer.parseInt(args[0]); //taking value a...
3:40 AM
Unknown
Write a program to display a greet message according to Marks obtained by student
class SwitchDemo { public static void main(String args[]) { int marks = Integer.parseInt(args[0]); //take marks as command...
1:44 AM
Unknown
To Find Minimum of Two Numbers using conditional operator
/* To find minimum of 2 Numbers using ternary operator */ class Minoftwo { public static void main(String args[]) { //taking v...
1:42 AM
Unknown
To Find Maximum of Two Numbers.
/* To Find Maximum of 2 Numbers using if else */ class Maxoftwo { public static void main(String args[]) { //taking value as c...
12:57 AM
Unknown
pyramid of numbers using for loops
/* Generate Pyramid For a Given Number Example This Java example shows how to generate a pyramid of numbers for given number using fo...
12:55 AM
Unknown
Factorial of a number using recursion
/* This program shows how to calculate Factorial of a number using recursion function. */ import java.io.BufferedReader; import ja...
10:59 PM
Unknown
Calculate Circle Area using radius
/* This program shows how to calculate area of circle using it's radius. */ import java.io.BufferedReader; import java.io.IOEx...
8:37 PM
Unknown
Nested Switch
/* Statements Example This example shows how to use nested switch statements in a java program. */ public class NestedSwitchExample {...
8:23 PM
Unknown
Reversed pyramid using for loops & decrement operator.
/* Pyramid 5 Example This Java Pyramid example shows how to generate pyramid or triangle like given below using for loop. 12345 1234 ...
8:22 PM
Unknown
Pyramid of stars using nested for loops
/* Java Pyramid 1 Example This Java Pyramid example shows how to generate pyramid or triangle like given below using for loop. * ...
Newer Posts
Older Posts
Subscribe to:
Posts (Atom)
social counter
Popular Posts
Reversed pyramid using for loops & decrement operator.
/* Pyramid 5 Example This Java Pyramid example shows how to generate pyramid or triangle like given below using for loop. 12345 1234 ...
How to write XML file in java
import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform...
How To Implements Https in java web applications
First Way First of all you need to enable SSL for your server. For Tomcat you need to generate an openSSL keystore and add the follow...
New Features Added By Java Compare to C++
There are a number of features in Java that have no equivalent in C++. Perhaps the three most important are multithreading, packages, and ...
Difference between http and https
There are some primary differences between http and https, however, beginning with the default port, which is 80 for http and 443 for ...
recent posts
category
Core Java
Java Programs
Programming Jokes
popular
Difference between http and https
There are some primary differences between http and https, however, beginning with the default port, which is 80 for http and 443 for ...
How To Implements Https in java web applications
First Way First of all you need to enable SSL for your server. For Tomcat you need to generate an openSSL keystore and add the follow...
How Garbage Collection Works in java
Since objects are dynamically allocated by using the new operator, you might be wondering how such objects are destroyed and their memory ...
How to write XML file in java
import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform...
The downside or disadvantages of using HTTPS
The increased security that HTTPS brings might suggest that it should be used as a matter of course, but there are drawbacks that must be ...
How to install JDK 7 in Ubuntu 13.04
In case you need Oracle Java instead of OpenJDK in Ubuntu, here's how you can install it via a PPA: sudo add-apt-repository ppa:...
New Features Added By Java Compare to C++
There are a number of features in Java that have no equivalent in C++. Perhaps the three most important are multithreading, packages, and ...
How to view current classpath in java?
Following example demonstrates how to view current classpath using echo command. C:> echo %CLASSPATH% Result: The above code s...
How to fill (initialize at once) an array in java?
This example fill (initialize all the elements of the array in one short) an array by using Array.fill(arrayname,value) method and Array...
How to set multiple classpath in java?
Following example demonstrates how to set multiple classpath. Multiple class paths are separated by a semicolon. c:> java -classpath ...
recent
About us
Blog Archive
►
2014
(12)
►
January
(12)
▼
2013
(60)
▼
December
(57)
Dynamic Binding in java
how final modifier works in java
What’s the difference between equals() and == in j...
Java interface versus abstract class
When to use abstract methods in Java?
In Java, will the code in the finally block be cal...
what is reflection in java
Get Http Status code using java code
Difference between string and stringbuffer class
4 Version of Java
Write a program to generate Harmonic Series.
Complain Of "Enter Key"
Idiot Girl
Write a program to find average of consecutive N O...
1 to 10 Display Triangle
Write a program to Find whether number is Prime or...
Write a program to find whether no. is palindrome ...
Display Triangle
Write a program to Display Invert Triangle using w...
Write a program to find whether given no. is Armst...
switch case demo
Program to Display Multiplication Table
Write a program to Swap the values
Write a program to convert given no. of days into ...
Write a program to generate Harmonic Series.
Write a program to find average of consecutive N O...
Write a program to concatenate string using for Loop
Write a program to find SUM AND PRODUCT of a given...
Write a program to display a greet message accordi...
To Find Minimum of Two Numbers using conditional o...
To Find Maximum of Two Numbers.
pyramid of numbers using for loops
Factorial of a number using recursion
Calculate Circle Area using radius
Nested Switch
Reversed pyramid using for loops & decrement opera...
Pyramid of stars using nested for loops
Generate prime numbers between 1 & given number
Palindrome Number
Fibonacci Series
Determine If Year Is Leap Year
Compare Two Numbers using else-if
Factorial of a number
To Display the List of even numbers
How To Open Notepad Using Java Code
Top 10 WebSites For Java Developers
Programming Jokes On RajiniKanth
Roles Of JRE
Task or Functionality or Job Of JVM
A Kid's Computer Problem
When a Non IT Girl Marries an IT Proffessional
Engineering is like Public Toilet
Teacher's Day Joke : Guru toh Guru Hota
Roles In Heaven
Computer World jokes on Sholay
Programming & Hindi Songs
Difference between java and .net
►
November
(3)
Labels
Core Java
Java Programs
Programming Jokes
Created By
Sora Templates
| Distributed By
Gooyaabi Templates