Priya Rajan

Greenhorn
+ Follow
since Jul 06, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Priya Rajan

Thank u Jane, Percy and Thomas.
Reda, the exam was little tough. For some questions I couldnt answer. but around 15-20 questions were very easy. Mock exams helped me a lot. There were many questions having code. Two fillups were there.
I followed some of maha tips. It was useful.

Originally posted by Priya Rajan:
Dear friends,
Thanks for all ur support. I got 83% in SCJP. I am looking for a job in Germany. Can anyone recommend me some websites or contacts?
Thank u.
Priya Rajan


23 years ago
Dear friends,
I got 83% in SCJP. I have 1 yr experience as Senior Programmer. I am looking for a job in Germany. Can anyone recommend me some websites or contacts?
Thank u.
Priya Rajan
23 years ago
Dear friends,
I got 83% in SCJP. I have 1 yr experience as Senior Programmer. I am looking for a job in Germany. Can anyone recommend me some websites or contacts?
Thank u.
Priya Rajan
23 years ago
Dear friends,
Thanks for all ur support. I got 83% in SCJP. I am looking for a job in Germany. Can anyone recommend me some websites or contacts?
Thank u.
Priya Rajan
23 years ago

Pl explain why this line is compiled? It is neither char nor unicode.
char c='\101'; //it prints some char also when printed.
I have exam tomorrow. Pl help
Thank u tvs. I have exam tomorrow. ur reply is very useful.

Originally posted by tvs sundaram:
I would like to give some of Jane Cristi, bartender's explanations (of course in some other thread of this forum) here


Sandeep,
can u explain me more clearly. I could not understand.I am calling the super class static method inside subclass overridden method.
I read in a Cerification Guide by Robert Heller that
static methods may not be overridden by non-static. (it implies static methods may be overridden by static methods)
Thanks
char c='\101';//there is no u after slash
what does it mean?
I think Characters can only be represented with hexadecimal numbers using \u. Am I right?
ex: char c='\u0000';
Pl explain
Friends,
static methods may not be overridden. true or false?
Complete Java Certification Guide by Roberts & heller says true in its mock exam provided in the CD.
class zzz{
static void print(){
System.out.println("hello");
}

}
class yyy extends zzz{
static zzz old=new zzz();
static void print(){
old.print();
System.out.println("world");
}
public static void main(String[] args) {
print();
}
}
The output prints hello followed by world. So I feel the answer is false in the question.

Thanks.
Can I initialise a static variable inside a non-static block,i.e {} without preceding static keyword?
suppose static varibles are initialised inside blocks {}, when these blocks are executed?
Hello friends,
char c = '\101';
The author says 101 is an octal number and it is valid. Can I give octal numbers? If so, what is the valid range?
char c = '\u0001' ; what does \u means in this code? (unicode?)
Thanks
Rashmi,
while compiling u say javac A.java and when executing u say
java C.
That solves the problem.

Originally posted by Rashmi Hosalli:
don't you think class C should be declared public instead of A?
Rashmi


Pl explain me
import java.util.*;
public class AllFinals
{
{
final Vector v;
v=new Vector();
}
public AllFinals()
{
}
public void someMethod()
{
System.out.println(v.isEmpty());
}
}
A compilation error : v is not an instance variable. why? Is it because v does not exist outside the block it is contained?

public class A
{
A()
{
class B
{
{
System.out.println("I am in no-arg constructor");
}
}
}

A(int i)
{
class B
{
{
System.out.println("I am in the arg constructor");
}
}
new B();
}
}
class C
{
public static void main(String[] args)
{
A a = new A(1);

}
}
Output:
Two class files corresponding to both inner classes (B) is created in the file system.
The classes compile cleanly and on running C as an application causes "I am in the arg constructor" to be printed on the console
Can anybody explain why inner class names does not clash? How is this mechanism works?
Thanks
Pl explain me
interface AnInterface
{
public void methodOne() throws Exception;
}
class AnInterfaceImpl implements AnInterface
{
public void methodOne()
{
System.out.println("I will never throw an exception");
}
}
public class ATest
{
public static void main(String args[])
{
//AnInterface ai = new AnInterfaceImpl();
//AnInterfaceImpl ai = new AnInterfaceImpl();
ai.methodOne();
}
}
1. AnInterImpl class methodOne() does not throw any Exception. Is it proper to implement this way?
2. when u uncomment the 2nd line, it displays "I will never throw...exception", but when u uncomment first line, causes a compile time error. ( Exception must be caught or thrown by main(String))