Use a Procfile, a text file in the root directory of your application, to explicitly declare what command should be executed to start your app. The Procfile in the example app you deployed looks like this: web: npm start. This declares a single process type, web , and the command needed to run it.
Let us take it this way, We will create their needs. So we will get why they are needed. Try to guess, which functions will be executed in the following program: public class MyClass { public static void main(String args[]) { MyClass obj = new MyClass(); obj.fun1(10); } void fun1(byte val){ System.out.println(val); } void fun1(int val){ System.out.println(val); } void fun1(float val){ System.out.println(val); } void fun1(long val){ System.out.println(val); } } It seems like every method is capable to run this program because 10 is still literal because It has no data type. Before Java, In previous technologies, this scenario gave an ambiguity error. But Java solves this problem by removing the concepts of literals. It means Java provide a data type immediately when these born. So here 10 is no more literal. Java provides Integer data type for it. So now it is of Integer t
Comments
Post a Comment