Core Java Interview Questions – Set 07

What is the difference between preemptive scheduling and time slicing Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The … Read more

Core Java Interview Questions – Set 06

What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented. How is an argument passed in java, by copy or by reference What is a modulo operator This operator gives the value which is related to the remainder of a divisione.g x=7%4 … Read more

Core Java Interview Questions – Set 05

What is the return type of a program’s main() method? A program’s main() method has a void return type. Can you change the reference of the final object No the reference cannot be change, but the data in that object can be changed What is the argument type of a program’s main() method A program’s main() method … Read more

Core Java Interview Questions – Set 04

What is the immediate superclass of Menu MenuItem. What is the purpose of a statement block A statement block is used to organize a sequence of statements as a single statement group. What is a native method? A native method is a method that is implemented in a language other than Java Which containers use … Read more

Core Java Interview Questions – Set 03

Name two subclasses of the Text Component class. TextField and TextArea. Where can static modifiers be used They can be applied to variables, methods and even a block of code, static methods and variables are not associated with any instance of class What advantage do Java’s layout managers provide over traditional windowing systems Java uses layout managers … Read more