Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
You can contribute any programs whic can worthy
//You can contribute any programs whic can worthy
//Till now, we were always taught “Comments do not Execute”. Let us see today “The comments that execute”

public class Testing {
public static void main(String[] args)
{
// the line below this gives an output
// \u000d System.out.println("comment executed");
}
}



public class Demo{
public static void main(String[] arr){

}
public static void main(String arr){

}
}

/*Choices:

a) Nothing
b) Error
Answer: a) Nothing
Reason: We can overload main() too. But JVM will always call main() that has String[] argument.
*/