This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Pranav Patel

Greenhorn
+ Follow
since Dec 11, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pranav Patel

Hi All,

I had cleared SCJP 1.4 exam in 2004. According to the previous rule, certification validity was 2 years.
Is thare any change in certification validity criteria? Or Am I aligible to give SCMAD exam after 3 years without renewal of SCJP?

Pranav

It will create a instance of file named �f� at the �directory� Directory on the heap.
To persist it, first you need to check - either directory folder should be there OR you need to call directory.mkdir(). And then you need to call file.createNewFile().
Just add to that, You can not modify originX variable as it is interface member and it is by default public static final.
Sorry for the previous post, it is not readable..

i1=2, i2=2: For ASCII value (int -128 to 127), it will compare it as an int value (so gives true).
i1=4000, i2=4000: For other int value, it will pass it as an Integer object as shown in the code (So gives false).

Auto boxing for ASCII value for int works different here.
Well I think,

: For ASCII value (-128 to 127), it will compare it as an value (so gives true).

: For other value, it will pass it as an object as shown in the code (So gives false).
You need to create dir.

File p = new File("a");
p.mkdir();
File f = new File(p,"h.txt");
System.out.println(f.getAbsolutePath());

try

{
f.createNewFile();
}
catch(Exception e){System.out.println("test");}



}