srikesh krishnan kutty

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

Recent posts by srikesh krishnan kutty

Hai All

I get this error while compiling my java code

trial1.java:2: package skk doesnot exist
import skk.MyClass;
^
trial1.java:3: cannot find symbol
symbol: class MyClass
class OtherClass extends MyClass{}


i have two seperate files MyClass.java and trial1.java

the code in them are as follows :

MyClass.java
----------------
package skk;
public class MyClass{}

trial1.java
---------------------

package kkk;
import skk.MyClass;
class OtherClass extends MyClass{}



Can anyone please help me out with this !!!



Why is it compulsory that the name of the java file must match the name of the public class ??
I read this in SCJP for java 6 study guide . I will look into the link added by you
Just read it that after the first character the identifiers can contain any combination of letters,currency characters,connecting characters or numbers. Don't know if # comes into this four categories or not. I am confused about this 'Connecting characters' part !!!
[color=blue]Hi all

I am new to java, can anyone please tell me why the identifier int e#; is illegal .. the way i see it is that it starts with a character ,which is valid and after that a identifier can contain anything .Please let me know if i am wrong .Waiting for your Valuable comments[/color]