Java-J2SE Example

Java-J2SE Example

Share

This page is for educational purpose only maintained. We are provide java example and optimze solution of java program if possible. plz like it ....

17/03/2017

What is the output of this code ?

class Test{
public static void main(){

int a = 2,b,c;
b = a++;
c = ++b;
a = b++ * c++;
System.out.print(a);
}
}

Last Program Output : slipstream slip stream

10/03/2017

What is the output of this code ?

class PassS
{
public static void main(String [] args)
{
PassS p = new PassS();
p.start();
}

void start()
{
String s1 = "slip";
String s2 = fix(s1);
System.out.println(s1 + " " + s2);
}

String fix(String s1)
{
s1 = s1 + "stream";
System.out.print(s1 + " ");
return "stream";
}
}

25/02/2017

What is the output of this code ?

for(int i = 0; i < 8 ; i++){

if(i == 2){
i++;
continue;
}

if(5*i == 20) break;
else System.out.print( 5*i);
}

09/02/2017

What is output of this program.

public static void main(){
int a = 20,b=30;
if(a!= 20 & b++ == 30);

System.out.print(a + ' : ' + b);
}

17/11/2016

http://codepen.io/avanish1707/post/how-to-use-image-map-in-html

How to use image-map in html A element define the client side image-map. Image-map is a image with different-different clickable area. element have a required attribute name. 's name...

27/09/2016

Blog url change please check this all past post here.

http://avanish1707.blogspot.in/

18/03/2016

Hello guys blog available for this page. Page have lots of Java example. Please like and if you need some new example you can comment your question in any post.

13/09/2015

LinkedHashSet Class Example

import java.util.*;
class LinkedHashSetDemo
{ public static void main(String args[])
{ // Create a hash set.
LinkedHashSet hs = new LinkedHashSet();
// Add elements to the hash set.
hs.add("B");
hs.add("A");
hs.add("D");
hs.add("E");
hs.add("C");
hs.add("F");
System.out.println(hs);
}
}

See more java Example on http://avanish1707.blogspot.in/

Java (J2SE) Example

Photos 15/05/2015
UpDate GK 15/05/2015

01 ~ अब तक खोजे गए सबसे अँधेरे ग्रह का नाम
क्या है?
उत्तर- टीआरईएस-2

UpDate GK

10/05/2015

Happy mother's day to all

Want your school to be the top-listed School/college in Delhi?
Click here to claim your Sponsored Listing.

Category

Address


Delhi
110092