C:\Users\Mayank\Documents\revision\Demos.java:7: package utils does not exist
import static utils.Repitition.twice;
^
C:\Users\Mayank\Documents\revision\Demos.java:7: static...
Type: Posts; User: mayankpant
C:\Users\Mayank\Documents\revision\Demos.java:7: package utils does not exist
import static utils.Repitition.twice;
^
C:\Users\Mayank\Documents\revision\Demos.java:7: static...
1. package utils;
2.
3. public class Repetition {
4. public static String twice(String s) { return s + s; }
5. }
and given another class Demo:
1. // insert code here
2.
3. public class Demo...
ok..i got it...if i call e.printStackTrace() , i get that exception with output
--- Update ---
A runtime exception because i have not serialized collar,though dog was serialized.
---...
i supposed to get an run time exception because my collar obect is not serialized, where as java says that u must get an runtime exception
import java.io.*;
class Dog implements Serializable
{
Collar col;
int dogSize;
Dog(Collar c,int s)
{