Java Programming and Technical Programming Program

Q. Can we execute a java program without main() method ?

Read Solution (Total 18)

Java Other Question

Write a program to print all the employee details that already exist in our system or directory. Suppose if we had a employee name with "abc". IF we click on "abc" we should get all the details of that employee..ie., already the details are there in our folder
Which of the following are legal lines of Java code?
1. int w = (int)888.8;
2. byte x = (byte)100L;
3. long y = (byte)100;
4. byte z = (byte)100L;
a) 1 and 2
b) 2 and 3
c) 3 and 4
d) All statements are correct.