• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Java

Frequently Asked Java interview questions and answers for freshers Page 7

Java Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

Java Question Topics

    Category (1)

    General Ability (3)

  • General Knowledge (3)
  • HR Interview (3)

  • Interview (3)
  • Logical Reasoning (5)

  • Blood Relations (1)
  • Coding Decoding (2)
  • Cryptography (1)
  • Seating Arrangement (1)
  • Numerical Ability (4)

  • Algebra (1)
  • Number System (1)
  • Profit and Loss (1)
  • Programming (124)

  • Arrays (7)
  • Basics (5)
  • Database (4)
  • Definition (25)
  • Functions (3)
  • Output (4)
  • Program (20)
  • Puzzles (1)
  • Technical (43)
  • Verbal Ability (1)

  • Miscellaneous (1)
Keep an EYE (0)
Solved Question (3) UnSolved Question (258)
Pages: 27FirstPrev3456789101112NextLast
Advertisements

(#M40018811) JAVA QUESTION JAVA QUESTIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Can you load the server object
dynamically? If so what are the 3 major steps involved
in it?

Asked In Java (12 years ago)
Unsolved
Is this Puzzle helpful?   (2)   (0) Submit Your Solution Technical

(#M40155912) JAVA QUESTION String Keep an EYE Keep an eye puzzle Keep an eye puzzle

Can we create a String object by using an array of characters?
[1] If Yes, then how?
[2] If No, then why?

Asked In Java Rishikesh Agrawani (9 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (15)   (2) Submit Your Solution Arrays
Advertisements

(#M40029438) JAVA QUESTION java Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. Explain different way of using thread?

A. A Java thread could be implemented by using Runnable interface or by extending the Thread class. The Runnable is more advantageous, when you are going for multiple inheritance.

Asked In Java MAN (12 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (3)   (1) Submit Your Solution Technical

(#M40156025) JAVA QUESTION java Keep an EYE Keep an eye puzzle Keep an eye puzzle

how can we print a statement in java with out main method in the java 7 version

Asked In Java PRABHANJAN (9 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (14)   (4) Submit Your Solution Arrays

(#M40159591) JAVA QUESTION string Keep an EYE Keep an eye puzzle Keep an eye puzzle

how to replace , in a given string without using predefined methods

Asked In Java Ramya Krishna T (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (22)   (9) Submit Your Solution

(#M40018802) JAVA QUESTION JAVA QUESTIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

What is the base class for all swing
components?

Asked In Java (12 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (3)   (3) Submit Your Solution Seating Arrangement

(#M40165443) JAVA QUESTION Circles and distance Keep an EYE Keep an eye puzzle Keep an eye puzzle

Circles and Distances
Problem Description
Task is to calculate the straight line distance between the two objects moving in a circular path. They may move at different velocities. The distance has to be calculated after N seconds.

The figure and commentary below it, explains the problem in detail.

com.tcs.cv.automata.ei.middleware.DocxToHtmlConverter@491cde5b:image1.png

We have two point objects B and C at rest on a straight line at a distance r1 and r2 units from a point A. At time t=0 seconds, the objects start moving in a circular path with A at the center with velocity v1 and v2 degrees per second.

Given inputs v1, v2, r1 and r2, calculate the distance between the B and C after N seconds.

Distance should be printed up to an accuracy of 2 places after the decimal point. Use Rounding Half-up semantics.

Input Format
First line contains velocity of object B in degrees per second (v1)

Second line contains distance of object B from A (r1)

Third line contains velocity of object C in degrees per second (v2)

Fourth line contains distance of object C from A (r2)

Fifth line contains time in seconds after which the distance between B and C, is to be measured (N)

Output
The distance between B and C, N seconds after they are set in motion

Constraints

v1, v2, r1, r2 > 0 and all are integer values.

r2 > r1

0 < n <= 100

The objects move in anticlockwise direction

v1, v2 <=360

r2 <= 100


Explanation
Example 1

Input

90

5

270

10

1

Output

15.00

Explanation

After 1 second, the object at B would cover 90 degrees and the object at C would cover 270 degrees. Both the objects would be vertically opposite to each other and would lie in a straight line.

So the distance between them would be equal to the sum of their distance from the origin A=5+10= 15

Asked In Java joshika (7 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (0) Submit Your Solution

(#M40158275) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

write a java programof string ; first letter should be upper case and rest in lowecase

Asked In Java div (8 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (9)   (2) Submit Your Solution Program

(#M40018881) JAVA QUESTION JAVA QUESTIONS Keep an EYE Keep an eye puzzle Keep an eye puzzle

Can we access the non-final local variable, inside the local inner class?

Asked In Java (12 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (2)   (0) Submit Your Solution

(#M40154181) JAVA QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

You have a block of platinum that can be exchanged in your bank either for cash or for smaller blocks of platinum. If you exchange a block of m grams, you get three blocks of weight m/2, m/3 and m/4 grams each. You don't get any fractional part, as the division process rounds down the value. If you exchange the block of platinum for cash, you get m units of currency. You can do any number of exchanges for smaller blocks or currency.
Given the value of a block in grams as input, write a program that would print the largest possible currency value that you can receive as the output. Assume that the maximum value of a block that can be given as an input is 1,000,000,000 grams and the minimum value is 2 grams.

Asked In Java kumar anand (10 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (11)   (10) Submit Your Solution Arrays
Keep an EYE (0)
Solved Question (3) UnSolved Question (258)
Pages: 27FirstPrev3456789101112NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

"maths is all around us, in everything we do"

aashna thakral

All I wanted to do was put together one of the best home maths systems in the world, and that's what we've done. I've loved numbers since I was two or three, and I get really excited about them. Now, I'm allowing myself to get excited about things. If you

KEERTHI

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com