Have U define the folder structure for your application? And for uploading the file U have to write all required code(Reading the file from the source & write it to destination) in the controller.
Here i created the object of the abstract class. can anyone explain me how java compiler allow this? Thanks for answering in advance...........
abstract class Abs { public abstract void makeTea (); public static Abs getInstance () { //return new Abs() Abs abs=new Abs() { public void makeTea () { System.out.println("This is from makeTea method"); } }; return abs; } }
public class Test { public Test() { //Abs abs=Abs.getInstance(); Abs abs=new Abs() { public void makeTea () { System.out.println("This is from makeTea method"); } }; abs.makeTea(); } public static void main(String[] args) { new Test(); } }