Java Related AllOther Interview Questions
Questions Answers Views Company eMail

What if the main method is declared as private?

469

Explain the reason for each keyword of public static void main(string args[])?

489

What do you understand by downcasting?

506

Why oracle type 4 driver is named as oracle thin driver?

449

Can the main method be declared final?

525

Why doesn’t the main method throw an error with no arguments?

526

How can I write a program that takes command line input?

474

Why there are no global variables in java?

514

What do you understand by numeric promotion?

513

Explain the encapsulation principle.

532

How can one prove that the array is not null but empty?

499

Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

462

Can an application have multiple classes having main method?

482

In system.out.println(), what is system, out and println?

631

Can I have multiple main methods in the same class?

479


Post New Java Related AllOther Questions

Un-Answered Questions { Java Related AllOther }

Is java built on c?

491


what is reflection api? How are they implemented?

531


Why there are no global variables in java?

514


Which is faster c++ or java?

514


What is lambda expression in mvc?

473






Write a program using call by refernce for two different classes to explain to print whether a given number is automorphic or not.

1365


Which method is used to create the daemon thread?

544


In hibernate what is the difference between the Session and SessionFactory?

526


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

3440


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

2638


What is a flatmap?

492


How can I protect myself? : java security

494


What is java api?

443


How do I install eclipse?

472


What is web xml java?

507