if a java file without any source code is valid java file?
Answers were Sorted based on User's Feedback
Answer / kartik kudada
Yes, It is possible .
java file can be empty.
You could check it eclipse.
| Is This Answer Correct ? | 15 Yes | 3 No |
yes a java file without any source code is valid java file.
it will compile without any error but while running it gives
error-
"could not find or load main class----"
| Is This Answer Correct ? | 0 Yes | 0 No |
Why main function is static?
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac
Can we use string in switch case in java?
Convert a BST into a DLL and DLL to BST in place.
What is arrays fill in java?
What is the difference between Java Bean and Java Class.?
What happens to the Exception object after handling an exception?
What is the difference between normal report & matrix report?
Which types of exceptions are caught at compile time?
What is the purpose of a parameter?
Is 'null' a keyword?
What are the advantages of java?