Parinitha Paramesh

Greenhorn
+ Follow
since Jan 21, 2013
Merit badge: grant badges
For More
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Parinitha Paramesh

Hi,

I'll be talking up OCJP 1z0-851 exam at the end of this month. I'm preparing for it by using the book Kathy Seirra, but I think this was originally meant for exam 310-065. I heard that there will be no drag-and-drop questions on 1z0-851 and also there are no questions on serialization. Can anybody please tell me what all topics we don't have to study for 1z0-851? Thanks.


Parinitha
Hi,

Whenever I write a program for an applet an I am able to successfully run it, but when I make changes to it, these changes are not reflected in the applet. Can anybody please tell me what mistake I am doing. This is how I compile it in cmd: javac ParamDemo.java

Then I again save this .java file as a .html file and I run it on cmd as:

appletviewer ParamDemo.html



Thanks

10 years ago
Thanks Campbell Ritchie. I'm hoping to get most of my doubts cleared through this portal as I'm a beginner to programming and I don't have much help around me to resolve my queries.
10 years ago
Thanks Stephan van Hulst. Your answer really helped.
10 years ago
Hi,

I am a beginner to programming. I am currently preparing for SCJP 6 when I came across this code on final variables. Can anybody just help me out with this?

final int a = 1;
final int b;
b = 2;
int x = 0;
switch (x) {
case a: // OK
case b: // compiler error

When I tried this code, I got a compile error like this:

constant expression required for case b:

My doubt is if final variables can be initialized anytime(not necessarily at the time of the declaration of the variable), then why am I getting this error for variable b?
Thanks in advance.
10 years ago