Earn money from home!!!PTC site is a site which pays for clicking their Ads.PTC sites is a way to communicate between advertisers and publishers (in this case the clickers or also called affiliators). Advertisers want to show their sites to people and they pay for it. Users at the ptc sites want to earn money and they do it by clicking the ads from advertisors.You can earn $200-400/month(depending on ur work) working less than 2 hrs daily. No investment..For more Details visit
http://www.earn4mptcsites.blogspot.com
Before attending Java interviews, I recommend this site http://sites.google.com/site/nareshwebpage/ He had covered all the stuff and I bet 90% of interview questions on java will come from these. It is helpfull for freshers to 5+ years of experienced java developer.
ReplyDeletehow does this code run????
ReplyDeleteinterface A {
interface B {
}
}
class Main {
public static void main(String[] args) {
new A.B(){{
System.out.println("Hello!");
}};
}
}
what is happening in the following code??
ReplyDeleteinterface Test
{
public void wish();
}
class objectOfInterface
{
public static void main(String[] args)
{
Test t=new Test()
{
public void wish()
{
System.out.println("output: hello how r u");
}
};
t.wish();
}
}
I got it :D
ReplyDeleteinterface A {
public A sayBye();
}
class B {
public static void main(String[] args) {
new A() {
public A sayHello() { System.out.println("Hello"); return this; }
public A sayBye() { System.out.println("Bye"); return this; }
}.sayHello().sayBye();
}
}
If m not wrong, what's happenin in the abobe code is :-
1) anonymous class is created implementing interface A.
2) sayHello() prints hello and returns the object the anonymous class
3) sayBye() is called by that object which prints "Bye".
Favorite quotes :
ReplyDelete"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense." --- Buddha.
"It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change."---Charles Darwin
"All thinking men are atheists." --- Ernest Hemingway
"If being an egomaniac means I believe in what I do, then in that respect you can call me that... I believe in what I do and I'll say it." --- John Lennon
Email automatically
ReplyDeleteIs there mail or internet packate in java
I din't find them. due to those packages is prompting error.
plz short out problem in this program.
*************************************************************
//this is an example i found on google.
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
public class SMTPClient {
public static void main(String args[]) throws Exception {
String host = "192.168.10.205";
String from = "test@localhost";
String to = "test@localhost";
// Get system properties
Properties properties = System.getProperties();
// Setup mail server
properties.setProperty("mail.smtp.host", host);
// Get the default Session object.
Session session = Session.getDefaultInstance(properties);
// Create a default MimeMessage object.
MimeMessage message = new MimeMessage(session);
// Set the RFC 822 "From" header field using the
// value of the InternetAddress.getLocalAddress method.
message.setFrom(new InternetAddress(from));
// Add the given addresses to the specified recipient type.
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
// Set the "Subject" header field.
message.setSubject("hi..!");
// Sets the given String as this part's content,
// with a MIME type of "text/plain".
message.setText("Hi ......");
// Send message
Transport.send(message);
System.out.println("Message Send.....");
}
}
*************************************************************
Plz solve this
You need to add two jar files for this:
ReplyDelete1) mail.jar
2) activation.jar
Download them from:
1) http://java.sun.com/products/javamail/downloads/index.html (mail.jar)
2) http://java.sun.com/javase/technologies/desktop/javabeans/glasgow/jaf.html (activation.jar)
I believe adding both these jar files can solve your problem... :)
2000 Java interviews questions with answers.
ReplyDeleteFind more than 2000 Java interviews questions with answers.
For more visit
R4r co in java
Walk in for IT Jobs Freshers and Experienced
ReplyDeleteAre you a fresher or Experienced professional, seeking for the right career path?
http://walkinforitjobs.com/ is the right place to search for walk in interviews for IT jobs
Both Freshers and Experienced
Join Orkut Community for walkinforITjobs.com
http://www.orkut.co.in/Main#Community?cmm=100351911
java interview Job tips
ReplyDeleteSearching for interview java, j2ee interview tips write by expats at http://tipsoninterview.com/c.html
JOBS IN EVERY SECTOR -- freshjobopenings.com
ReplyDeleteJob Openings
http://freshjobopenings.com/
For yahoo users..
http://groups.yahoo.com/group/indian_jobs4u/
Google group….
http://groups.google.com/group/fresher_openings
For orkut users..
http://www.orkut.com/community.aspx?cmm=30229224&refresh=1
Jobs for Freshers&Experienced
ReplyDeleteJob Openings
http://freshjobopenings.com/
For yahoo users..
http://groups.yahoo.com/group/indian_jobs4u/
Google group….
http://groups.google.com/group/fresher_openings
For orkut users
http://www.orkut.com/community.aspx?cmm=30229224&refresh=1
Excellent opportunity for Sr. Java Developers
ReplyDeleteHi All,
We have urgent opening for Sr. Java developers. Please find the requirement below.
Skill : Java - Mandatory
Optional Skill: Webmethods, Scrum Master, Websphere
Experience : 3.5 years +
Work Location : Bangalore
Traffic Ultimatum: $126,510 per month using FREE traffic and YOUTUBE!
ReplyDelete.
★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
.
.
Hey, I'll be quick because this is important...
.
We have yet again been able to secure a SUPER
FREE EXCLUSIVE for YOU (from a top Clickbank kid
who goes by the name of George Brown)!
.
You *need* to watch this. And it won't
be up for long.
.
==> http://george-browns-traffic-ultimatum.blogspot.com/
.
They're saying THIS VIDEO...
.
(and the simple, but totally unheard of traffic
source in it)
.
... is worth *seven* figures alone.
.
MY OPINION:
.
This is one of the most powerful (and
realistic) "money grabbing" techniques
I've ever seen.
.
(heck, if a --> 19 <-- year old can make over
$126,510.74 a MONTH with it...) yep - he's 19!
.
ANYONE can do this one.
.
I even cleared out my shedule for today
to try this thing out. Seriously.
.
And the best part? He's GIVING AWAY this
entire method in a free short video.
.
==> http://george-browns-traffic-ultimatum.blogspot.com/
.
Once you start getting traffic and money
by using the methods in the free video
above I promise you that you wont be able
to wait for part 2 tomorrow...
.
.
Watch it. Do it. Enjoy the rewards.
.
Adeel Chowdhry and Bobby Walker
Banner Ad Blueprint Team
.
PS. It's all over the forums, facebook, groups etc...
.
EVERYONE is talking about it
.
And there all saying the same thing:
.
WOW.
.
You gotta' check it out.
.
==> http://george-browns-traffic-ultimatum.blogspot.com/
.
-------------------------------------------------------------------------------------------------
To Your Success
.
Gangireddy